Wednesday, 2 May 2012

What's difference between SET and LIST in Java?

"SET" never allows duplicate elemements.It contains element in unique and stores elements in an         unordered way.In Set we retrive  data only in forward direction.

"LIST"  allows duplicate elemements.It contains element in non-unique and stores elements in an ordered                                   way.In List you can retrive both forward and backward direction.

No comments:

Post a Comment