what is difference betwwen hashmap and hashtable ?

Answer Posted / sekhar

Both class are under map interface.But hash table is
synchronized.hashMap is not.we can explictly synchronize
hash map by using the method
Collections.synchronizedMap(Hash Map);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between abstract class and interface?

499


What is Applet Stub Interface ?

1954


What is the benefit of abstract class?

505


What is ctrl m character?

505


How to retrieve data from database in java using arraylist?

516






What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

551


How many bytes is a unicode character?

492


What is used of static keyword in java?

573


Can we have 2 main methods in java class?

529


How do you clear an arraylist in java?

485


how to split string in java?

643


How do you create a bulleted list?

548


Why is flag used in java?

536


Can java arraylist hold different types?

484


What does n mean in java?

493