what is Hashmap & Hashtable wirh example?

Answer Posted / rameshreddy.k

---HashTable is synchronised BUT hashmap is not synchronised
---HashTable not allow null keys and null values BUT
HashMap allow only one null key and multiple null values
---HashTable not allow Duplicate keys and Douplicate values
are allowed.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java instanceof operator?

559


Can we declare an array without size in java?

520


What is the disadvantage of java?

504


What is queue in java?

552


Should you use singleton pattern?

521






Is there any difference between nested classes and inner classes?

533


Give any two differences between C++ and java.

554


What is byte value?

552


What is floating data type?

537


Can main() method in java can return any data?

642


What is the difference between synchronized and synchronized block?

499


What is use of static method?

532


What is time complexity algorithm?

546


What are the five major types of reference sources?

532


What is the generic function?

526