Which form of method reference is used to refer to an instance method of an existing object?

  1. ClassName::methodName
  2. object::methodName
  3. ClassName::new
  4. ClassName::staticMethod
Correct answer object::methodName

Explanation

The syntax `object::methodName` refers to an instance method of an existing object.

Update: Admin added a tag on this question

Topics

By Admin · · 27 views