Multiple Choice
What will be the value of matches after the following code has been executed?
Boolean matches;
String str1 = "The cow jumped over the moon.";
String str2 = "moon";
Matches = str1.endsWith(str2) ;
A) true
B) False
C) moon
D) The cow
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q6: To convert the double variable, d =
Q7: What is the value of str after
Q8: The process of breaking a string down
Q9: To convert the string, str = "285.74"
Q10: Look at the following code: Integer myNumber
Q12: What is the term used for the
Q13: This character is one that appears at
Q14: Look at the following statement: StringBuilder str
Q15: What will be printed after the following
Q16: Sometimes a string will contain a series