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
Q16: You can change the contents of a
Q28: Which of the following methods of the
Q29: If a non-letter argument is passed to
Q31: The Character wrapper class provides numerous methods
Q32: To convert the int variable, number to
Q34: When using the String class's trim method,
Q36: Use the following import statement when using
Q37: The String class's valueOf() method accepts a
Q38: Two ways of concatenating two Strings are:<br>A)
Q47: You cannot assign a value to a