Multiple Choice
Which one of the following statements can be used to get the fifth character from a string str?
A) char c = str.charAt(5) ;
B) char c = str.charAt(4) ;
C) char c = str[5];
D) char c = str[4];
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q114: Assuming that the user inputs a value
Q115: Suppose a phone number, stored as a
Q116: Which one of the following operators computes
Q117: What will be the value stored in
Q118: What is the output of the following
Q119: What will be the value of the
Q120: Which is the mathematical equivalent of the
Q121: What is the value of the following
Q122: Assuming that the user inputs a value
Q124: Which is a correct representation of the