Examlex

Solved

What Will Be Displayed After the Following Code Is Executed

question 5

Multiple Choice

What will be displayed after the following code is executed? boolean matches;
String str1 = "The cow jumped over the moon.";
String str2 = "moon";
Matches = str1.endsWith(str1) ;
System.out.println(matches) ;


Definitions:

Related Questions