what is difference between set and list in collection?

Answer Posted / harikrishna

set inter is used to represent unique elements where as in
list interface elements need not be unique ArrayList,
Vector and LinkeList implememts list interface.Hashset and
LinkedHastSet implements set interface

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is illegal identifier in java?

790


Can you explain the cs option of java interpreter?

705


What is immutable class in java?

707


How does a for loop work?

735


What is a method in programming?

863


Difference between arraylist and vector.

816


Are variables stored in ram?

760


What are local variables?

800


what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

705


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

1065


What is a heavyweight component?

751


What is the purpose of interface?

786


Is 0 true or is 1 true?

705


can used Protected Class outside Function.?

827


Can you declare the main method as final?

724