Multiple Choice
Which of the following would return the last character of the String x?
A) x.charAt(0) ;
B) x.charAt(last) ;
C) x.charAt(length(x) ) ;
D) x.charAt(x.length( ) -1) ;
E) x.charAt(x.length( ) ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: Consider the double value likelihood = 0.013885.
Q4: If you want to draw a red
Q5: There are three ways that data conversion
Q6: A cast is required in which of
Q7: Explain, in words, what the following statement
Q9: Using the various String methods, manipulate a
Q10: You specify the shape of an oval
Q30: In Java, 'a' and 'A' are considered
Q39: Write a program that will input some
Q66: What is wrong with the following assignment