What is different on List and Set in Java Collection

Tutorials Shared by the Internet Community

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 diff
http://javarevisited.blogspot.com/2012/04/difference-between-list-and-set-in-java.html
  • Total Hits: 15647

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 146 votes

  • Category: JAVA/Collections

  • Submitted on: 2012-08-25 08:30:25

  • Submitted By: Javin Paul

  • Set as Favorite

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
 One star  Vote LeftVote MiddleVote Right 37.67%  55
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.27%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.64%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.64%  17
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.77%  42

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements