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
Q13: Which of the following statements with comments
Q22: What is the output of the following
Q25: Which one of the following statements can
Q28: Which one of the following is
Q29: Which of the following is the
Q30: Which of the following options is valid
Q46: What happens to the fractional part when
Q58: Which one of the following statements gives
Q112: Which operator is used to concatenate two
Q119: Which of the methods below are static
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