what is the difference between HashMap And HashTable?

Answer Posted / ravikiran

HashMap allows one null key and multiple null values
HashTable doesnn't allow nulls
HashMap is not synchronized
hashtable is synchronized

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by jjs in java8?

562


What are pass by reference and pass by value?

529


What does the string method compareto () do?

540


What is array list in java?

593


Why is sizeof not a function?

553






How a variable is stored in memory?

507


Which sorting algorithm is best in java?

539


What is the syntax and characteristics of a lambda expression?

563


What is the generic function?

531


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1465


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

547


How do you sort arraylist in descending order?

580


How objects of a class are created if no constructor is defined in the class?

582


Explain the difference between abstract classes and interfaces in java?

602


Explain where variables are created in memory?

588