Computer Applications
Mention the purpose and syntax of length() method.
Java String Handling
2 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
2 Likes