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

Explain what is orm?

0 Answers  


what is activation monitor and what is its job?

1 Answers  


can a static method be overridden

12 Answers   SolutionNET,


how i secure my site with the https protocol.what are the steps?

0 Answers  


Can we have more than one action servlet?

7 Answers   HP,






difference of inheritance and interface

3 Answers  


What is the difference between java class and bean?

0 Answers  


What is diffennce between AWT & SWING?

4 Answers  


what is Static binding?

2 Answers   Wipro,


Why use POJO when I can use hashmap

0 Answers   Infotech,


What are the design considerations while making a choice between using interface and abstract class?

0 Answers  


Where we can write Rmi registry in the code, without having to write it at the command prompt?

0 Answers  


Categories