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
Q100: Which one of the following statements displays
Q101: Which one of the following statements can
Q102: What output is produced by these statements?
Q103: Which of the given statements generates the
Q104: What (if any) type of error occurs
Q106: Assuming that the user enters 45 and
Q107: What is the output of the following
Q108: What is the output of the following
Q109: Assuming that the user enters 23 and
Q110: What is the output of the following
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents