what is difference between set and list in collection?

Answer Posted / chris

Set does not permit duplicate elements, List does. Also, Set
does not guarantee any iteration order, whereas List does.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stream api in java8?

537


Explain implementation and how is it different from conversion?

589


How garbage collection is done in java?

551


What kind of variables a class can consist of?

637


What invokes a thread's run() method in java programming?

571






What is the difference between a local variable and an instance variable?

552


What is subsequence of a string?

604


What is difference between wait and notify in java?

547


What is Gang of four design patterns

596


What are the drawbacks of reflection?

565


What are pass by reference and pass by value?

529


How do you sort words in java?

538


What is the purpose of the System class?

583


What do you understand by Header linked List?

598


Can I overload to string method

968