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 canvas?

572


Is minecraft 1.15 out?

556


Explain the importance of import keyword in java?

532


What is meant by polymorphism?

543


Why can't we use static class instead of singleton?

505






What is == and === in javascript?

565


What are the different http methods?

545


Why we cannot override static method?

569


What is currentthread()?

579


What is the program development process?

569


What is a constructor overloading in java?

530


What is difference between equal and == in java?

528


What are the methods used to implement for the key object in the hash map?

572


What are the methods to rectify ambiguities in the interfaces in JAVA?

608


What are the restrictions that are applied to the java static methods?

534