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 rmic?

4 Answers  


Why is actionform a base class rather than an interface?

0 Answers  


suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?

7 Answers  


Difference between new operator and class.forname().newinstance()?

0 Answers  


Why are some of the class and element names counter-intuitive?

0 Answers  


whats is statement and procedure

0 Answers   TCS,


difference between Abstract and Interface?

2 Answers   HCL, Infotech,


what is a dirty read?

1 Answers  


In real time project when will we use Abstract class. and what are the difference between abstract and interface.

6 Answers   DELL, FCS, Polaris, Tanla Solutions, TCS,


What are the different algorithms used for clustering?

0 Answers  


How would you reatach detached objects to a session when the same object has already been loaded into the session?

0 Answers  


What is in-memory replication?

0 Answers  


Categories