Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Difference between List and Set in Java Collection? Example

Difference Between List And Set In Java Collection? Example
What is the difference between List and Set in Java is a very popular Java Collection interview question and an important fundamental concept to remember while using the Collections class in Java. Both List and Set are two of the most important Collection classes Java Program use along with various Map implementations. The basic feature of List and Set are abstracted in the List and Set interface in Java and then various implementations of List and Set adds specific features on top of that e.g. ArrayList in Java is a List implementation backed by Array while LinkedList is another List implementation that works like linked list data-structure.


This post first appeared on Javarevisited: Blog About Java Programmin, please read the originial post: here

Share the post

Difference between List and Set in Java Collection? Example

×

Subscribe to Javarevisited: Blog About Java Programmin

Get updates delivered right to your inbox!

Thank you for your subscription

×