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

1 Answers   Wipro,


Are we allowed to change the transaction isolation property in middle of a transaction?

0 Answers  


life cycle of an applet?

3 Answers  


Can I run seam outside of jboss as?

0 Answers  


How many JSP scripting elements and what are they?

4 Answers   TCS,






Why JDBC has introduced

4 Answers  


Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.

2 Answers  


What is mdb and what is the special feature of that?

0 Answers  


Give me simple example of hibernate caching and explain the details of caching????? thanks in adv.

1 Answers  


list the types of dialodg

1 Answers   Wipro,


what are memory considerations of jsp compares to other web components?

0 Answers   TCS,


How do you set security in applets?

1 Answers   IBM,


Categories