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
Why won’t the jvm terminate when I close all the application windows?
Why do threads block on i/o?
What is a class loader? What are the different class loaders used by jvm?
What is difference between object state and behavior?
How substring() method of string class create memory leaks?
What is the difference between a menuitem and a checkboxmenuitem?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
What is the difference between static and non-static with examples?
What is bean? Where can it be used?
What is a class loader?
Are enterprise beans allowed to use thread.sleep()?
what are the activation groupworks?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
What is Stream Tokenizer?
What is mdb and what is the special feature of that?