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
Can we execute java program without main method?
What is the difference between the final method and abstract method?
What’s the difference between applets and standalone program?
Can an object be null?
What are the differences between getting and load method?
What is the use of System class?
Is a method a function?
Is upper case in java?
what is an objects lock and which objects have locks? : Java thread
Why are the methods of the math class static?
Can we execute a program without main() method?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
Why do we need wrapper class?
What are data types in programming?
What is the benefit of inner classes in java?