Multiple Choice
Which one of the following expressions can be used to extract the last five characters from any string variable str?
A) str.substring(str.length() - 5, str.length() )
B) str.substring(5, 5)
C) str.substring(str.length() - 4, 5)
D) str.substring(str.length() - 5, 5)
Correct Answer:

Verified
Correct Answer:
Verified
Q53: Which one of the following statements displays
Q54: The assignment operator<br>A)denotes mathematical equality<br>B)places a new
Q55: Which statement is true?<br>A)Variables cannot be assigned
Q56: Which one of the following statements defines
Q57: What is the output of this code
Q59: What are the values of num1 and
Q60: Which of the given System.out.print statements generates
Q61: What is the output of the following
Q62: What is the result of the following
Q63: Which statements about numeric types in Java