Java 101: Check if a String Is Empty or Blank How do I check my Strings? Let me count the ways... by Join the DZone community and get the full member experience.Join For Free In Java, an empty String and a blank String are two different concepts. It’s always confusing and tricky for Java beginners to check if a String is both, empty or blank. An empty String is a String object initialized without any character, whereas a blank string is a String with a whitespace character. Always remember that a String with just whitespace may or may not be considered empty, depending on the program. Depending upon your situation, you can include the logic to check for that as well. A String with just whitespace is also referred to as a blank String in Java. In this tutorial, I will teach you a couple of right ways to check if a String is empty or blank in Java.