what is difference betwwen hashmap and hashtable ?

Answer Posted / ravikiran

hashmap allows one null key and multiple null values.
hashtable doesn't allow null elements
hashmap is not synchronized
hashtable is snchronized
hashmap is not legacy
hashtable is legacy

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a JAR file?

582


What is the main difference between java platform and other platforms?

495


Define Multiprogramming and Multiprocessing in java.

569


Write a program in java to create a doubly linked list containing n nodes.

547


What is the purpose of file class?

537






worst case complexities of Quick sort and Merge sort.

585


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

544


Can we have any code between try and finally blocks?

551


Which is bigger double or float?

517


What is difference between static class and singleton pattern?

471


What is the use of generics? When was it added to the Java development Kit?

546


What does g mean in regex?

554


Can we sort arraylist in java?

553


What is the difference between method overriding and overloading?

569


What is the functionability stubs and skeletons?

675