If Shakespeare were a developer, his Hamlet class' comparison method would probably contain these lines :
if (obj == null) return (this == null);
Found in our production code. The Java equivalent of "To be or not to be [null]".