A

Admin • 830.13K Points
Coach

Q. What is the main difference between Set and List?

  • (A) List is unordered, Set is ordered
  • (B) Set allows duplicates, List does not
  • (C) List maintains order and allows duplicates, Set does not
  • (D) There is no difference
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
List allows duplicates and maintains order; Set allows only unique elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.