Taking text apart: substring, split and indexOf
QuizEasy-MediumJava only
String s = "Selenium WebDriver"; Which expressions are correct? Pick all that apply.
s.substring(0, 8)is "Selenium"s.split(" ")[0]is "Selenium"s.indexOf("Web")is 10s.length()is 18
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.