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

  • (A) List::size
  • (B) List::add
  • (C) Collections::sort
  • (D) List::get
πŸ’¬ Discuss
βœ… Correct Answer: (B) List::add
Explanation: `List::add` is the method reference for adding an element.
Explanation by: Mr. Dubey
`List::add` is the method reference for adding an element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
76
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate