Java String length example

Previous
Next
String’s length method is used to calculate length of String. It returns number of character in the String.

Method Signature:

String length Example:

When you run above program, you will get below output:

Previous
Next

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.

Add Comment

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog