Skip to content

What is difference between Set and List in Java

7
  • tan
  • Ranjith
  • Sakshi Shioramwar
  • Debajyoti Ghosh
What is difference between Set and List in Java

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 o

Read this post on javarevisited.blogspot.com


Popular Articles by this blogger