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

Define an applet in java?

815


What are the super most classes for all the streams?

1730


When to use runnable interface vs thread class in java?

718


What does sprintf return?

772


What is the difference between access specifiers and access modifiers in java?

804






What is a java object and java application?

777


What is intern method in java?

774


Can we initialize the final blank variable?

788


Explain about arraylist?

750


Java Compiler is stored in JDK, JRE or JVM?

1209


Difference between arraylist and vector.

784


What is tostring () method?

745


What restrictions are placed on method overriding?

833


How are multiple inheritances done in Java?

810


Define jre i.e. Java runtime environment?

755