what is the difference between HashMap and Hashtable

Answer Posted / sarithareddy

Hashmap work as like as Hashtable but hashtable is
synchronised hash map was not sychronized
hashtable does not allow null values
hashmap allows null values

Is This Answer Correct ?    123 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of stub and skeleton?

759


What's a method in programming?

761


What is the use of arraylist class in java?

768


Difference between a process and a program?

824


what is singleton in java?

805


Whats the difference between notify() and notifyall()?

797


What are the differences between getting and load method?

759


State two differences between C and Java.

957


Difference between static synchronization vs. Instance synchronization?

833


What is array length?

722


What is string in java? String is a data type?

768


What is the difference between this() and super() in java?

776


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

887


What is a stringbuilder?

709


Is hashset ordered?

769