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
what is the difference between the methods sleep() and wait()? : Java thread
Explain the difference between comparator and comparable in java?
How to remove the trailing spaces from a string?
Write a method to check if input string is palindrome?
What is the public method modifier?
What is difference between jdk,jre and jvm?
What is break and continue statement?
How do you bind variables?
What is java abstraction with example?
What is mnemonic code?
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.
What's the default access specifier for variables and methods of a class?
What is difference between length and length() method in java ?
Give the difference between the println method and sqrt method?
What is the original name of java?