what is the difference between HashMap And HashTable?
Answer Posted / stalin
The HashMap class is roughly equivalent to Hashtable, except
that it is unsynchronized and permits nulls. (HashMap allows
null values as key and value whereas Hashtable doesnt
allow). HashMap does not guarantee that the order of the map
will remain constant over time. HashMap is unsynchronized
and Hashtable is synchronized
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Explain access modifiers in java.
What is method in java ?
What super () does in java?
Is 0 a prime number?
How to sort elements in a parallel array in java?
Why string is called as immutable?
What are default methods ?
What do you understand by overloading and overriding in java?
Why spring singleton is not thread safe?
What about method local inner classes or local inner classes in java?
What are the important methods of java exception class?
What is compareto () in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
Explain different ways of creating a thread. Which one would you prefer and why?
Describe the various concepts related to object oriented programming (oop).