A

Admin • 802.91K Points
Coach

Q. Which method returns an Optional describing the first element?

  • (A) first()
  • (B) findFirst()
  • (C) getFirst()
  • (D) peek()

Explanation by: Admin
findFirst() returns an Optional containing the first element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.