KnowledgeBoat Logo
|

Computer Applications

Mention the purpose and syntax of length() method.

Java String Handling

4 Likes

Answer

The length() method returns the length of a string. The length is equal to the number of characters present in the string including the white spaces.
Syntax:
stringObject.length()

Answered By

3 Likes


Related Questions