Which interface is often used with a constructor reference like `ArrayList::new`?

  1. Supplier
  2. Consumer
  3. Function
  4. Predicate
Correct answer Supplier

Explanation

Supplier provides instances and matches constructor references like `ArrayList::new`.

Update: Admin added a tag on this question

Topics

By Admin · · 30 views