Java String isEmpty() method

Facebooktwitterredditpinterestlinkedinmailby feather

Java String isEmpty() method checks whether current String is empty or not.

Syntax:

Returns 

It returns true, if length of String is 0 otherwise false.

Java String isEmpty() method example 1

Output:

Java String isEmpty() method example 2

Output:

Java String isEmpty() method example 3

Output:

Facebooktwitterredditpinterestlinkedinmailby feather

Leave a Comment