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

Why does it take so much time to access an applet having swing components the first time?

1398


Can we override data members in java?

632


What are the string methods in java?

586


Explain about features of local inner class?

605


What is the difference between an if statement and a switch statement?

652






What is regex in java?

531


What is the difference between superclass and subclass?

549


How many times finalize method will be invoked? Who invokes finalize() method in java?

578


Explain about assignment statement?

601


How can we avoid including a header more than once?

614


What are jee technologies?

536


what do you mean by marker interface in java?

547


What are methods in java?

542


What is math exp in java?

548


What is your platform’s default character encoding?

562