What is different on List and Set in Java Collection
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
What is different on List and Set in Java Collection
Main difference between Set and List is that Set does not allow any duplicates and only store unique objects while List allow duplicates. Another diffhttp://javarevisited.blogspot.com/2012/04/difference-between-list-and-set-in-java.html
Total Hits: 4831
Total Votes: 163 votes
Category: JAVA/Collections
Submitted on: 2012-08-25 08:30:25
Submitted By: Javin Paul
Description:
Main difference between Set and List is that Set does not allow any duplicates and only store unique objects while List allow duplicates. Another difference between Set and List is that Set does not maintain any order while List maintains order on which object is added into List. More detail...Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.56% |
27 |
![]() ![]() |
![]() ![]() 15.95% |
26 |
![]() ![]() ![]() |
![]() ![]() 17.79% |
29 |
![]() ![]() ![]() ![]() |
![]() ![]() 15.95% |
26 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 17.79% |
29 |





16.56%

15.95%

17.79%

15.95%

17.79%