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

Why are there no global variables in java?

587


Why is a string immutable?

546


Which class represents the socket that both the client and server use to communicate with each other?

575


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

564


How big is a 64 bit float?

541






we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1573


Can list be final in java?

489


Where is the find and replace?

535


What are identifiers in java?

577


How many arguments can be passed to main ()?

525


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

537


What is meant by structural programming?

555


Is int primitive data type?

507


What are register variables what are the advantages?

450


What is formatted output?

514