difference. between List and Set?
Answers were Sorted based on User's Feedback
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 |
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 |
What is the relationship between an event-listener interface and an event-adapter class?
Can constructors be synchronized in java?
What is meant by method chaining?
What will happens, when a thread cannot acquire a lock on an object?
Are we allowed to change the transaction isolation property in middle of a transaction?
What is mdb and what is the special feature of that?
To what value is a variable of the string type automatically initialized?
Where does the session Object stores? If 100 users are connecting to the server. How does it recognize which session belongs to which user?
5 Answers HCL, Mobillo Venture,
what is a non-repeatable read?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
what is difference between object state and behaviour?
Why use POJO when I can use hashmap