Which method reference is valid for invoking an instance method on a particular object?

  1. ClassName::methodName
  2. objectName::methodName
  3. ClassName::new
  4. this::methodName
Correct answer objectName::methodName

Explanation

objectName::methodName is used for referring to an instance method of a specific object.

Update: Admin added a tag on this question

Topics

By Admin · · 30 views