Multiple Choice
What will be the value of loc after the following code is executed? int loc;
String str = "The cow jumped over the moon.";
Loc = str.lastIndexOf("ov",14) ;
A) 15
B) 16
C) 0
D) -1
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: If you are using characters other than
Q15: What will be the value of matches
Q19: What will be the tokens in the
Q40: If you do not specify delimiters in
Q41: What will be the value of loc
Q42: Look at the following code. Integer myNumber;<br>MyNumber
Q43: Assuming that str is declared as follows:
Q45: What will be the tokens in the
Q46: For the following code,how many times would
Q53: You must call a method to get