What is the method reference equivalent of `() -> ClassName.staticMethod()`?

  1. ClassName::instanceMethod
  2. ClassName::staticMethod
  3. new ClassName()::staticMethod
  4. this::staticMethod
Correct answer ClassName::staticMethod

Explanation

Static methods are referenced by `ClassName::staticMethod`.

Update: Admin added a tag on this question

Topics

By Admin · · 27 views