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 synchronization and why is it important? : Java thread

820


'A class is a template for an object' explain this statement.

734


What are the five major types of reference sources?

726


What are Normalization Rules? Define Normalization?

748


What is a numeric digit?

759


How does arraylist work in java?

756


What is functional interface in java?

750


Define a java class.

1071


What are the differences between string and stringbuffer?

821


Explain how can you debug the Java code?

814


Can an unreferenced object be referenced again?

931


Why are global variables used?

697


What is a parameter in a function?

730


What are heterogeneous objects?

773


What data structures are used to perform recursion?

790