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 are instance variables?
What is the difference between declaration and definition in java?
What is the format specifier?
How can you handle java exceptions?
How to print nodes of a Binary tree?
Explain the difference between association, aggregation and inheritance relationships.
How do you escape json?
What is unicode with example?
How does java pattern compile work?
Difference between == and .equals() ?
What is the difference between the direct buffer and non-direct buffer in java?
What kind of variables can a class consist?
Why volatile is used in java?
What is byte code and why is it important to java’s use for internet programming?
Is java call by value?