Vidyalelo
Java Programming · Q5

Strings

Programming · Java Programming · question 5

Q5

What does the length() method of a String object in Java return?

A.
The capacity of the string
B.
The size of the string
C.
The length of the string
Answer
D.
The index of the last character

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board