what is hashmap& hashtable with example?
Answer / siva kumar g.
Both are collection of objects.
Both are used to store the key , value pairs.
Hashtable is synchronized where as Hashmap is not.
Hashtable does't allow the null values.
Is This Answer Correct ? | 7 Yes | 1 No |
What is run time allocation?
Is 0 true or is 1 true?
Can I create any Marker Interface? If yes then how can I use it???
What is static method with example?
How do you replace a string in java?
What is the java reflection api? Why it’s so important to have?
How do constructors use this() and super()?
What is starvation?
JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu
What’s the difference between unit, integration and functional testing?
Write a program to check for a prime number in java?
Is main a keyword in java?