Java String length() method

Facebooktwitterredditpinterestlinkedinmailby feather

Java String length() method returns length of the characters in a String.

Syntax:

Returns

It returns length of the characters

Java String length() method example 1

Output:

Java String length() method example 2

Output:

Facebooktwitterredditpinterestlinkedinmailby feather

Leave a Comment