Solved

Assume the Variable Str Has Been Declared to Be a String

Question 125

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents