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
Is oracle java 11 free?
What is a method in java?
What is java lang object?
Explain 5 io best practices?
What is a lightweight component?
Can we override private method?
How is a structure different from array ?
What happens if constructor is private?
What is square root in java?
Can we use String with switch case?
Do I need to import java.lang package any time? Why?
Which programming language is best in future?
What is replaceall in java?
What is a method in programming?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?