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

Difference between swing and awt?

0 Answers  


What is the difference between java class and bean?

0 Answers  


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

0 Answers  


wahts is mean by dynavalidatorform in struts/

1 Answers   SolutionNET,


What are skeletons and stubs and how they are generated?

2 Answers  






What is the relationship between local interfaces and container-managed relationships?

0 Answers  


Name the eight primitive java types.

0 Answers  


Explain the difference between object state and behavior?

0 Answers  


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

0 Answers  


Thread life cycle?

3 Answers   TCS,


Write a singleton program?

0 Answers  


What is the difference between Super and This Keyword?

4 Answers   HCL, TCS,


Categories