Question: which one of the following option is used for checking that the string is null string?
Answer: To check if a String is null or empty in Java you can use one of the following options. Use isEmpty() method available Java 6 onward to check if the String is empty. Use StringUtils. isEmpty() method of the Apache Commons Lang.