One of the primary tenets of any good programmer is to program defensively.

To than end, we should avoid NullPointerException and using the equals method on a constant is a excellent way to...