Solved

What Is the Output of the Following Code Snippet

Question 41

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, 9) ;
System.out.println(str2) ;
}


A) I LOV
B) OVE M
C) V
D) VE MY

Correct Answer:

verifed

Verified

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

Related Questions