A

Admin • 828.03K Points
Coach

Q. Which method retrieves but does not remove the first element of a NavigableSet?

  • (A) pollFirst()
  • (B) first()
  • (C) getFirst()
  • (D) peekFirst()
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
`first()` retrieves the first element without removing it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.