Solved

Which One of the Following Statements Can Be Used to Get

Question 123

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions