What does the method reference `this::methodName` refer to?

  1. Static method
  2. Method of current object
  3. Constructor
  4. Superclass method
Correct answer Method of current object

Explanation

`this::methodName` refers to a method of the current object instance.

Update: Admin added a tag on this question

Topics

By Admin · · 32 views