1.14 Calling Instance Methods

Suggested Skills: 2.C, 3.C

LO 1.14.A — Develop code to call instance methods and determine the result of these calls.

  • 1.14.A.1Instance methods are called on objects of the class. The dot operator is used along with the object name to call instance methods.

  • 1.14.A.2 — A method call on a null reference will result in a NullPointerException.

Last updated

Was this helpful?