Solved

What Will Be the Value of Matches After the Following

Question 11

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