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:

Verified
Correct Answer:
Verified
Related Questions
Q21: What is the value of Math.pow(3, 2)?<br>A)6.0<br>B)9.0<br>C)8.0<br>D)5.0
Q23: Which one of the following refers to
Q56: What is the output of the following
Q57: What is wrong with the following code
Q59: Which one of the following statements can
Q62: What will be printed by the statements
Q64: What is wrong with the following code
Q65: What is the output of the following
Q98: Which operator is used to concatenate two
Q103: Assume the following variables have been declared