Prev Next

Java / Strings

isEmpty()

This non-static method of any String object returns true when length of the String is zero. This method does not check for null and if the string is null then it throws NullPointerException.

More Related questions...

Show more question and Answers...


Comments & Discussions