Solved

What Will Be the Value of Matches After the Following

Question 9

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions