Difference between Hash Table and Hash Map?

Answer Posted / guru

hashtable is Synchronised where as hashmap is not.
hash table are legacy classes hashmap are collections

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When arithmeticexception is thrown?

785


What are the two basic ways in which classes that can be run as threads may be defined?

797


What is a treemap in java?

741


What is the main functionality of the remote reference layer?

1631


What is the formula to calculate percentage?

742


What is bufferedwriter?

736


Give reasons supporting that string is immutable.

703


What is the use of predicate in java 8?

680


What is floor in java?

788


What is the difference between stringbuffer and stringbuilder class?

791


Wha is the output from system.out.println(“hello”+null); ?

887


What is the main advantage of passing argument by reference?

703


What is the dot operator?

751


What is printwriter in java?

712


What do you mean by scope of variable?

662