A

Admin • 828.03K Points
Coach

Q. Which of the following is TRUE about Set?

  • (A) Set can contain duplicate elements
  • (B) Set preserves insertion order by default
  • (C) Set has a fixed size
  • (D) Set allows only unique elements
  • Correct Answer - Option(D)
  • Views: 9
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
Set does not allow duplicate elements and only stores unique values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.