Search:     Advanced search
Browse by category:
C/C++   |   Java   |   Oracle/Database   |   SAP   |   ASP .NET   |   Mainframe-DB2   |   Freshers

Q: Difference between HashMap and HashTable?

Add comment
Views: 1771
Votes: 15
Comments: 0
A: The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized.  
 
Others in this Category
document Q: What is final?
document What is Struts?
document What is the INSERT statement?
document What is the difference between the getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface and javax.servlet.ServletContext interface?
document Is next a keyword in Java?
document What are triggers? How to invoke a trigger on demand?
document What is ActionForm?
document Q: How can container knows that JSP has been changed ? ex: I created one.jsp and the result has been displayed. Next i modified one.jsp and got the new result. but how can container know that one.jsp has got changed?
document What is software architecture of EJB?
document What are the common mechanisms used for session tracking?
» More articles



RSS