Which method reference is equivalent to `(list, e) -> list.add(e)`?

  1. List::size
  2. List::add
  3. Collections::sort
  4. List::get
Correct answer List::add

Explanation

`List::add` is the method reference for adding an element.

Update: Admin added a tag on this question

Topics

By Admin · · 29 views