what is Hashmap & Hashtable wirh example?

Answer Posted / sivadasan

Hashmap is not Synchronized where as Hashtable is
Synchronized.

Hashmap allows null values as keys.
Hashtable doesn't allows null values as keys.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java a virus?

535


What do you mean by checked exceptions?

540


What is instance synchronization?

546


What is type inference in java8?

580


What is the latest java version?

561






how to create multithreaded program? Explain different ways of using thread? : Java thread

533


What is java volatile?

545


what is meant wrapper classes?

608


How to make object serializable in java?

553


What does \ mean in regex?

624


Why we use protected in java?

538


Why is method overloading not possible by changing the return type in java?

593


Why do we need autoboxing in java?

520


Is array serializable java?

525


When throws keyword is used?

584