What is the difference between set and list?

Answer Posted / janet

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

Is This Answer Correct ?    200 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to deploy tomcatserver to weblogic server? write d following steps?

1438


What is string immutability?

532


Is there is any difference between a scrollbar and a scrollpane?

555


Can long be null in java?

538


What is e in java?

533






How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

575


Is java a utf 8 string?

520


Which sorting algorithm is in place?

531


What is :: operator in java?

498


What is the difference between method and means?

565


What are streams?

625


How big is a 64 bit float?

529


What do you understand by final value?

580


Difference between linkedlist and arraylist.

580


What is the difference between compile-time polymorphism and runtime polymorphism?

555