difference between HashMap, Hashset and hashTable?
Answer Posted / sujitpingale
HashMap -
1) unsynchronized and unordered
2) Allow one null key , multiple null values
HashTable -
1) synchronized and unordered
2) Doesn't allow null key and value
HashSet -
1) synchronized and ordered
2) Sort elements in ascending order , doesn't allow duplicate elements
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a class loader?
What does module-relative mean?
How would you create a button with rounded edges?
What are local interfaces? Describe.
How primary key is implemented in Oracle?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What are the steps to write p-to-p model application?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
How are the elements of a cardlayout organized?
How a component can be placed on Windows?
Is it possible to stop the execution of a method before completion in a sessionbean?
What is jboss?
What is difference between object state and behavior?
What value does read() return when it has reached the end of a file?
What is Stream Tokenizer?