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
What is use of static in java?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What is parsing a string?
Can we clone singleton object in java?
What is void class in java?
What is java virtual machine? Explain
What is the use of singleton?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
Is heap stored in ram?
What is a final class in java?
Explain the difference between association, aggregation and inheritance relationships.
Why are lists ordered in java?
What is the char data type?
How we create object in copy constructor?