import org.apache.commons.lang.StringUtils; public class MainClass { public static void main(String[] args) { //Compare Strings...No NullPointer Exception! System.out.println("12) Comapre null and null >>>" + StringUtils.equals(null, null)); } }
12) Comapre null and null >>>true