what is the difference between HashMap And HashTable?

Answer Posted / raghu

HashMap only one null key and multiple values. Hashtable
doesn't allow null keys and values, it throws
NullPointerException. Both are not guarantee order. HashMap
is unsyncronized, whereas Hashtable is not.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we execute java program without main method?

516


What is the difference between the final method and abstract method?

538


What’s the difference between applets and standalone program?

530


Can an object be null?

543


What are the differences between getting and load method?

542






What is the use of System class?

606


Is a method a function?

545


Is upper case in java?

526


what is an objects lock and which objects have locks? : Java thread

532


Why are the methods of the math class static?

576


Can we execute a program without main() method?

529


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

560


Why do we need wrapper class?

535


What are data types in programming?

546


What is the benefit of inner classes in java?

604