Multiple Choice
Which one of the following statements can be used to extract the last 10 characters from the string variable str?
A) str.substring(str.length() - 10, str.length() )
B) str.substring(10, str.length() )
C) str.substring(str.length() - 9, 10)
D) str.substring(0, 10)
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q76: Which is a correct representation of the
Q77: What is the output of this code
Q78: Which option represents the best choice for
Q79: A student's class average can be computed
Q80: Which of the following statements about constants
Q82: What is wrong with the following code?<br>int
Q83: What is the output of the following
Q84: What will be printed by the statements
Q85: What is result of evaluating the following
Q86: Which of the following statements will assign