Tuesday, October 27, 2015

Core Java - What is the difference between List and Set ?


Set contain only unique elements while List can contain duplicate elements.
Set is unordered while List is ordered . List maintains the order in which the objects are added

No comments:

Post a Comment