Multiple Choice
What does the following statement sequence print? String str = "Java Is Good";
Int n = str.length() ;
String mystery = str.substring(n - 4, n) +
Str) charAt(4) + str.substring(0, 4) ;
System.out.println(mystery) ;
A) Java
B) Good Java
C) Good
D) Is Good
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q14: What is the result of the following
Q22: What is the value of the following
Q50: Which one of the following statements gives
Q63: Which statements about numeric types in Java
Q78: Which option represents the best choice for
Q108: What output is produced by these statements?
Q110: Which is the Java equivalent of the
Q111: Assuming price contains the value 20.0, which
Q117: What is the output of the following
Q118: What does the following statement sequence print?