Difference between Hash Table and Hash Map?
Answer Posted / santosh nayak
HashMap hm=new HashMap();
hm.put("s","s");
hm.put("a","a");
hm.put(null,"r");
hm.put(null,"t");
hm.put("e","e");
This is the code where we can allow multiple null key values
in HashMap.
Is This Answer Correct ? | 1 Yes | 12 No |
Post New Answer View All Answers
What is object-oriented paradigm?
How do you declare a string variable?
How many bytes is a string java?
what is the difference between the methods sleep() and wait()? : Java thread
Is zero a positive integer?
What is foreach loop in java?
What happens to a static var that is defined within a method of a class?
What does java stand for?
List the three steps for creating an object for a class?
What are the differences between c++ and java?
Can you override private or static method in java?
What is a treeset in java?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
How do you write a conditional statement?
How to find the largest value from the given array.