Which type of method reference is demonstrated by `String::toUpperCase`?

  1. Static method reference
  2. Instance method reference of an arbitrary object
  3. Constructor reference
  4. Instance method reference of a specific object
Correct answer Instance method reference of an arbitrary object

Explanation

`String::toUpperCase` refers to an instance method of an arbitrary object of type String.

Update: Admin added a tag on this question

Topics

By Admin · · 31 views