what is the difference between HashMap and Hashtable

Answer Posted / avinash

1. Hash map is not is synchornized
2. Hash map is allow null value only at once.
3. iterator is fail safe

1.Hash table is synchronized.
2. Hash table isnot allow null value.
3. enum hashtable is not.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unicode used for?

827


What is listnode in java?

748


What is bean? Where it can be used?

838


how to split string in java?

874


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

790


Can we restart a thread already started in java?

830


What is the main advantage of passing argument by reference?

726


Explain the importance of throwable class and its methods?

790


What is string in java is it a data type?

743


What is casting in java programming?

776


java program with complete 4 oops concepts implemented example

2927


Explain about version control?

777


What is a flag variable?

744


What is a class object?

700


Explain access modifiers in java.

783