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
Q4: Which one of the following refers to
Q33: Which of the following options is valid
Q34: What is the output of the following
Q36: What output is produced by these statements?
Q38: Assuming that the user inputs a value
Q39: What is the output of the following
Q40: Assuming that the user inputs "Joe" at
Q46: What happens to the fractional part when
Q52: Consider the following division statements:
I.22 / 7
II.22.0
Q58: Which one of the following statements gives
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents