what is the difference between HashMap And HashTable?
Answer Posted / venkateswarlu
HashMap :
->It is a key,value pair.
->key are not duplicated but values can be duplicated.
->Null key is possible.
->It is not Synchronized by default.
Hashtable:
->It is also key,value pair but both are Strings only.
-> Keys are not duplicated but values can be duplicated.
->Null insertion is not possible of both(key and value).
->It is Synchronized by default.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain list interface?
Explain the concept of proper inheritance?
Can a abstract class be declared final?
What is double data type?
Which oo concept is achieved by using overloading and overriding?
What is natural ordering in java?
Why string is not a wrapper class?
What is a dot notation?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What are the main uses of java?
Are strings immutable in java?
What is immutable in java?
what is predefined function in java?
List down the methods and interfaces of collection class in java.
What are the elements of java?