what is Hashmap & Hashtable wirh example?

Answer Posted / 20/04/2008

hashmap class is not syncronized but hasTable is syncronized
. both stores key and value. hashtable is part of legasy
class we can use enumerator interface of this hashtable class.

Is This Answer Correct ?    27 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a singleton class be inherited?

523


what is a working thread? : Java thread

548


What is string args [] in java?

537


What is literal example?

560


What is the difference between Grid and Gridbaglayout?

578






Is vector thread safe in java?

554


Can you achieve runtime polymorphism by data members?

581


What do you mean by JVM?

585


What is pojo class in java?

534


How do you calculate square roots?

570


Can a static member function access member variable of an object?

554


Write the algorithm to check the number non-leaf nodes in a tree.

587


Which method returns the length of a string?

564


What is arrays sort in java?

566


What is the importance of main method in Java?

572