isEmpty(String str) – Checks if a String is empty (“”) or null. StringUtils. isBlank(String str) – Checks if a String is whitespace, empty (“”) or null.
Is empty and null check in Java?
isEmpty(String str) – Checks if a String is empty (“”) or null. StringUtils. isBlank(String str) – Checks if a String is whitespace, empty (“”) or null.