Multiple Choice
Which one of the following statements 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
Q21: What is the value of Math.pow(3, 2)?<br>A)6.0<br>B)9.0<br>C)8.0<br>D)5.0
Q23: Which one of the following refers to
Q55: Which of the following options is valid
Q56: What is the output of the following
Q57: What is wrong with the following code
Q61: What is the output of the following
Q62: What will be printed by the statements
Q64: What is wrong with the following code
Q67: Which one of the following reserved words
Q103: Assume the following variables have been declared