Home > DeveloperSection > Interviews > What is the difference between List and Set?

Posted on    May-12-2015 1:36 AM

 Java Java  Collection 
Ratings:
 1 Answer(s)
  343  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-12-2015 1:36 AM

List can contain duplicate elements whereas Set contains only unique elements.
Also,
List are ordered whereas sets are not ordered

Modified On May-12-2015 01:39:59 AM

Don't want to miss updates? Please click the below button!

Follow MindStick