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
Q1: When you are writing a program with
Q8: In a string that contains a series
Q10: Given the following statement,which of the following
Q14: In the following statement,what data type must
Q18: If a non-letter argument is passed to
Q22: To convert the string, str = "285"
Q34: What would be the results of executing
Q38: Two ways of concatenating two Strings are:<br>A)
Q57: If str is declared as: String str
Q60: What does the following statement do?<br>Float number