Difference between Hash Table and Hash Map?

Answer Posted / hemasankar reddy suggu

1)Hashtable method all are synchronized where as HashMap
does not Synchornized all methods
2)HAshtable object is thread safe where HashMap object is
not thread Safe
3)Hashtable perfomance is low where Hashtable performance is
High
4)null is not allowed in Hashtable but HAshMap null is allowed
5)Hashtable is Interduced in 1.0V where HashMap interduced
in 1.2V

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where and how can you use a private constructor?

724


What data type is true or false?

770


Explain about oops concepts.

834


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1763


What is functional interface in java example?

747


How do you escape sequences in java?

788


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

742


What do you mean by data type?

757


How will you call an Applet using Java Script Function?

734


What is queue in java?

769


Can we make constructors static?

928


What are the differences between processes and threads?

733


Why should I use abstract class?

755


What is arraylist e in java?

705


Can we extend immutable class?

735