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 ioc concept & explain it?

0 Answers  


What is metaspace?

0 Answers  


why we use main in java?

4 Answers  


Difference between swing and awt?

0 Answers  


Explain bind(), rebind(), unbind() and lookup() methods?

1 Answers  






Can constructors be synchronized in java?

0 Answers  


Why DOM Parser would take more Memory than SAX parser while they are parsing?

3 Answers   OnMobile,


what is singleton class? where it mainly used in the projects?

5 Answers   Satyam, Wipro,


What is the difference between long.class and long.type?

0 Answers  


What is the infobus?

0 Answers  


function of extends and implements keywords?

2 Answers  


How can I avoid validating a form before data is entered?

0 Answers  


Categories