What is the difference between set and list?

Answer Posted / may

set stores elements in an unordered way but does not
contain duplicate elements,where as it stores elements in
an ordered way but may contain duplicate elements.

Is This Answer Correct ?    37 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between final and finally in java?

578


What is time complexity java?

526


Can we change the scope of the overridden method in the subclass?

831


What is collection sort in java?

543


What is parsing a string?

584






Why is boolean important?

580


What mechanism does java use for memory management?

482


Explain the difference between treeset and treemap in java?

514


What an i/o filter in java programming?

592


Discuss about garbage collector in Java.

630


Why pointers are not used in java?

570


Is space a character in java?

506


What are the two categories of data types in the java programming language?

495


What is remote method invocation (rmi)?

606


Can we serialize arraylist in java?

526