Solved

What Is the Output of the Following Code Snippet? Public

Question 61

Multiple Choice

What is the output of the following code snippet? public static void main(String[] args) {
{
String str1;
Str1 = "I LOVE MY COUNTRY";
String str2 = str1.substring(4, 11) ;
System.out.println(str2) ;
}


A) OVE MY
B) OVE MY C
C) VE MY CO
D) VE MY C

Correct Answer:

verifed

Verified

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

Related Questions