difference. between List and Set?

Answers were Sorted based on User's Feedback



difference. between List and Set?..

Answer / yamini

List contains duplicate values and it does not allows null values.

Set contains unique values and it allows null values.

Is This Answer Correct ?    1 Yes 0 No

difference. between List and Set?..

Answer / ravi raj

List:
-----
1.list sub interface of collection
2.list is collection objects with duplicates.

Set:
----
1. Set sub interface of collection.
2. Set is collection objects with duplicates.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Advanced Java Interview Questions

What is the argument type of a programs main() method?

0 Answers  


What are the advanatages of RMI ?

1 Answers   HGS,


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

0 Answers  


What are Benefits of Connection Pooling?

2 Answers  


i have a 1000 objects in data base i need to display those in jsp's how can i retrive those objects in jsp. (consider the performance issue)

2 Answers  


difference between  ejb,struts,hibernate,spring and jsp

0 Answers  


What is there in browser that it supports web based applications of java or any other PL?

2 Answers  


Different between Struts and Spring? or Why use Spring, if you are already using Struts?

3 Answers   HP,


When a thread blocks on i/o, what state does it enter?

0 Answers  


what is difference between checked exception & unchecked exception in java?

3 Answers   Ness Technologies,


How many times may an objects finalize() method be invoked by the garbage collector?

0 Answers  


What is the difference between the font and fontmetrics classes?

0 Answers  


Categories