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

write a program that list all permutations of ABCDEF in which A appears before B?

2013


Which object oriented concept is achieved by using overloading and overriding?

557


Which is faster set or list in java?

532


Why local variables are stored in stack?

500


What is type safety in java?

488






What are the two main uses of volatile in Java?

603


what are abstract functions?

560


What is class??

759


What is ternary operator?

568


Why we use set in java?

518


Explain the difference between treeset and treemap in java?

532


What restrictions are placed on method overriding in java programming?

543


Explain about anonymous inner classes ?

580


What do you mean by scope of variable?

488


what is the messsage u r going to get from an objectoriented programing?

1613