Solved

Which One of the Following Expressions Can Be Used to Extract

Question 58

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:

verifed

Verified

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

Related Questions