What is the difference between List and Set ?

List can have duplicates but set can not have.
List implementations are ordered by index position but Set is not.
If we retrive the elements from list every time we will get the same order but in case of set we might ght different order.

2 comments:

  1. Good article. I was really enjoyed reading your post. This is truly worthy to read. Good content and good information. God bless!

    Jasmin
    www.imarksweb.org

    ReplyDelete
  2. I really enjoyed reading your article. I found this as an informative and interesting post, so i think it is very useful and knowledgeable. I would like to thank you for the effort you have made in writing this article.


    edupdf.org

    ReplyDelete