What is the difference between List and Set?
List can contain duplicate elements whereas Set does not allow duplicate elements.
List maintains the insertion order whereas Set does not maintains the insertion order.
List can contain duplicate elements whereas Set does not allow duplicate elements.
List maintains the insertion order whereas Set does not maintains the insertion order.
No comments:
Post a Comment