Solved

Which One of the Following Statements Can Be Used to Extract

Question 81

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions