what is difference betwwen hashmap and hashtable ?

Answer Posted / sekhar

Both class are under map interface.But hash table is
synchronized.hashMap is not.we can explictly synchronize
hash map by using the method
Collections.synchronizedMap(Hash Map);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of operators are there?

525


What is an example of a boolean?

569


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

611


Write a method that will remove given character from the string?

573


What is mean by collections in java?

564






What is set and get methods in java?

541


Can constructor return value?

511


What does the “final” keyword mean in front of a variable? A method? A class?

546


What is local variable and instance variable?

609


Write a program to print fibonacci series up to count 10.

518


List some oops concepts in java?

582


What are parsing rules?

500


How do you print array in java?

554


What are the two parts of a conditional statement?

514


java program with complete 4 oops concepts implemented example

2727