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 meant by design patterns?

598


What is pre increment and post increment in java?

514


What is classpath?

556


What’s the difference between applets and standalone program?

545


Which java ide is used the most?

516






How to instantiate static nested classes in java?

570


What is the advantage of functional interface in java 8?

535


Difference between final and effectively final ? Why is effectively final even required ?

573


how to prepare for IT Officers Interview in Banks

1508


how to create multithreaded program? : Java thread

519


How do you sort in ascending order in java?

532


List implementations of list interface?

571


What is the purpose of main function in java?

543


Is an integer an object?

527


What does string [] args mean?

551