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.indexOf("ov") ;
A) 15
B) 16
C) 17
D) 18
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: If you are using characters other than
Q19: What will be the tokens in the
Q32: To convert the int variable, number to
Q37: What will be the tokens in the
Q40: If you do not specify delimiters in
Q42: Look at the following code. Integer myNumber;<br>MyNumber
Q43: Assuming that str is declared as follows:
Q43: What will be the value of loc
Q45: What will be the tokens in the
Q46: For the following code,how many times would