Solved

Assume the Variable Str Has Been Declared to Be a String

Question 11

Multiple Choice

Assume the variable str has been declared to be a String that has at least one character. Which is the following represents the last character in str?


A) str.charAt (str.length() )
B) str.lastChar()
C) str.charAt (str.length() - 1)
D) str.substring(str.length() )

Correct Answer:

verifed

Verified

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

Related Questions