What is different on List and Set in Java Collection
Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 17768
Total Votes: 150 votes
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...