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:

Verified
Correct Answer:
Verified
Related Questions
Q6: What is the output of the following
Q7: What does the following statement sequence print?
Q8: What is wrong with the following code
Q9: What will be the value inside the
Q10: Which one of the following is a
Q13: What is the output of the following
Q15: What will be the value inside the
Q16: Assume the following variable has been declared
Q55: Which statement is true?<br>A)Variables cannot be assigned
Q60: Which of the given System.out.print statements generates