what is difference between set and list in collection?
Answer Posted / chris
Set does not permit duplicate elements, List does. Also, Set
does not guarantee any iteration order, whereas List does.
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
What is map java?
What is the return type of the main method?
What is meant by 'bit masking' in java?
What is primitive data type in java?
What do you mean by synchronized non access modifier?
Where and how can you use a private constructor?
Differentiate between nested and inner class in java.
Is this valid in java ? Can we instantiate interface in java?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
What is treeset and treemap in java?
What are autoboxing and unboxing? When does it occur?
What is the symbol for space?
When throws keyword is used?
How to read and write image from a file ?
Can we extend singleton class in java?