public class MyClass { private int z; public void meth (int v) { z = v; } } ... MyClass x = null; x.meth (3);What happens when I execute the last statement, x.meth (3)?
What happens is that x has the value null, so we cannot access x.meth, and instead Java throws a NullPointerException.
import a.big.code.directory;
The default equals method returns exactly the same result as == (see p. 76 in the book).