Calling instance methods

An instance method is called on one object with the dot, so it works with that object's own data, and calling one through a null reference has no object to work on and throws a NullPointerException.

From AP Computer Science A.