What is the difference between set and list?

Answer Posted / krishnareddym. a

When we required uniqueness then we can use set and set
does not allow any duplications but list may contain
duplications set and list both extends collection interface...

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why runnable interface is used in java?

680


What are the uses of java?

661


What are static initalizers in java ?

663


Is node a data type in java?

603


Difference between final and effectively final ?

722






When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

667


Does constructor creates the object ?

686


What is bubble sort in java?

710


Is integer passed by reference in java?

671


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

634


What is gc()?

656


what are the disadvantages of indexes in oracle?

1950


Can one thread block the other thread?

689


Which is easier netbeans or eclipse?

717


Can we use a switch statement with strings?

653