Solved

Which One of the Following Statements Can Be Used to Extract

Question 59

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:

verifed

Verified

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

Related Questions