is null check in java?
It checks it using a null check using != null and isEmpty() method of string. In plain terms, if a string isn't a null and isEmpty() returns false , it's not either null or empty. Else, it is.