Which interface does `Supplier<ClassName>` match with?

  1. ClassName::methodName
  2. ClassName::new
  3. new ClassName()
  4. ClassName.methodName()
Correct answer ClassName::new

Explanation

Constructor reference `ClassName::new` matches Supplier.

Update: Admin added a tag on this question

Topics

By Admin · · 19 views