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

what is the difference between the methods sleep() and wait()? : Java thread

517


Explain the difference between comparator and comparable in java?

488


How to remove the trailing spaces from a string?

654


Write a method to check if input string is palindrome?

586


What is the public method modifier?

548






What is difference between jdk,jre and jvm?

573


What is break and continue statement?

618


How do you bind variables?

533


What is java abstraction with example?

561


What is mnemonic code?

543


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.

1585


What's the default access specifier for variables and methods of a class?

518


What is difference between length and length() method in java ?

564


Give the difference between the println method and sqrt method?

627


What is the original name of java?

544