length() function returns the number of characters in a string - Core Java

Q.  Which string function returns the number of characters in a string?
- Published on 15 Jul 15

a. length()
b. replace()
c. charAt()
d. equalIgnoreCase()

ANSWER: length()

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)