About Question com.enthuware.ets.scjp.v6.2.522 :
Posted: Wed Oct 08, 2014 8:36 am
If passed a null it can also throw a NullPointerException, right? E.g.:
TestClass tc2 = null;
System.out.println(tc2.equals(null)); //does not return false, but throws NPE
(I picked answer "none of the above" instead of answer "must return false" because of this).
TestClass tc2 = null;
System.out.println(tc2.equals(null)); //does not return false, but throws NPE
(I picked answer "none of the above" instead of answer "must return false" because of this).