Multiple Choice
What does the following statement sequence print? String str = "Harry";
Int n = str.length() ;
String mystery = str.substring(0, 1) + str.substring(n - 2, n) ;
System.out.println(mystery) ;
A) Ha
B) Har
C) Hy
D) Hry
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q14: What is the result of the following
Q22: What is the value of the following
Q29: In an airline reservation system, the number
Q78: Which option represents the best choice for
Q113: What does the following statement sequence print?
Q117: What is the output of the following
Q119: Which of the following is the
Q120: Assuming that the user enters 45 and
Q121: The problem solving process emphasizes a "first,
Q122: A student's class average can be computed