Which method reference helps to instantiate a new ArrayList?

  1. ArrayList::size
  2. ArrayList::add
  3. ArrayList::new
  4. Collections::emptyList
Correct answer ArrayList::new

Explanation

`ArrayList::new` is a constructor reference.

Update: Admin added a tag on this question

Topics

By Admin · · 30 views