what is the difference between HashMap And HashTable?

Answer Posted / ravikiran

HashMap allows one null key and multiple null values
HashTable doesnn't allow nulls
HashMap is not synchronized
hashtable is synchronized

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain java coding standards for methods?

823


How is hashset defined in java?

750


how to write a server program and sending the mails to the server using smtp protocol please help me

1807


How do you sort a set in java?

733


What is a concrete classes? Is Java object class is concrete class?

758


What is internal variable?

763


Why pointers are not used in java?

855


Is oracle java 11 free?

721


What is sorting algorithm in java?

783


Does list maintain insertion order java?

716


How are observer and observable used in java programming?

770


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

1024


What is use of static in java?

824


What is concurrent hashmap and its features?

785


How strings are created in java?

817