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

Howmany interfaces are used in RMI?

2 Answers  


what is a non-repeatable read?

0 Answers  


What are the steps to write p-to-p model application?

0 Answers  


Is System.err.println(""Statement"); is execute the output on console . Example: System.err.println("Hello JAVA");

8 Answers  


how to use debug in my elipse to solve problems that exist in my project

0 Answers   SAP Labs, TCS,






Which containers use a border layout as their default layout?

0 Answers  


Why are component architectures useful?

0 Answers  


What is a compilation unit?

1 Answers  


whats is mean by class.forName() whats the return type of class

6 Answers   SolutionNET,


Is multiple try block is possible in single java Application......

3 Answers  


How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration

1 Answers  


how the mapping can be done from jsp to actionservlet?

2 Answers   SolutionNET,


Categories