Java String isEmpty example

Previous
Next
String’s isEmpty method checks if length of string is 0 or not. It returns true if length of String is 0 else return false.

Method Signature:

String isEmpty 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