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

What is the byte order of byte buffer?

560


What is the default size of set in java?

498


How we can execute any code even before main method?

549


What is an error in java?

637


What is meant by memory leak?

537






What is the different between get and post?

496


What is difference between path and classpath variables?

563


Explain java coding standards for variables ?

665


What are the types of strings?

559


Are static members inherited to sub classes?

636


What does %d do in java?

578


What is remote method invocation (rmi)?

611


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1982


What is the difference between the paint() and repaint() methods?

583


worst case complexities of Quick sort and Merge sort.

599