如果xxx不是null的话,xxx==null将返回false,如果xxx是null的话,xxx将返回ture
而对xxx.equals(null)而言,他将永远返回false,因为如果xxx不是null,将不会返回false,如果xxx是null的话,将会抛出空指针异常NullPointerException。
总结一句话就是:永远不要用xxx.equals(null),因为没有意义。