what is hashmap& hashtable with example?
Answer / siva kumar g.
Both are collection of objects.
Both are used to store the key , value pairs.
Hashtable is synchronized where as Hashmap is not.
Hashtable does't allow the null values.
Is This Answer Correct ? | 7 Yes | 1 No |
Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?
Explain java heap space and garbage collection?
who was the founder of java
32 Answers CTS, HCL, ProKarma,
what is difference between servletconfig and servletcontext?
Explain different forms of polymorphism?
Explain the difference between scrollbar and scrollpane?
Can java hashmap have duplicate keys?
Is null or empty java?
Can we write method inside a method in java?
What is charat ()?
What are parsers? Dom vs sax parser.
What is ph and buffers?