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
Can one thread block the other thread?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
describe synchronization in respect to multithreading? : Java thread
What are the 6 functions?
Which class cannot be a subclass in java?
What is meant by call by reference?
What is the difference between overriding and overloading in OOPS.
How does java pattern compile work?
What are the elements of java?
What is an immutable class?
How do you declare a destructor in java?
What is lambda expression in java?
What is a native method in java programming?
What is null object in java?
What is sleep method?