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:

Verified
Correct Answer:
Verified
Related Questions
Q19: Which of the following statements is correct
Q26: What does the following statement sequence print?
Q29: In an airline reservation system, the number
Q29: What is the output of the following
Q33: What is wrong with the following code?<br>Int
Q37: What is the value inside the var
Q38: What is the output of the following
Q45: What is the value of Math.pow(2, 3)?<br>A)
Q113: How do you extract the first 5
Q118: What does the following statement sequence print?