what is the difference between HashMap and Hashtable
Answer Posted / suresh
HashMap hm=new HashMap();
hm.put("1","11");
hm.put("2","22");
hm.put("3","33");
hm.put("4","242");
hm.put(null,null);
hm.put(null,null);
HashMap also allow more null values
| Is This Answer Correct ? | 24 Yes | 13 No |
Post New Answer View All Answers
Can we execute a program without main() method?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
what is meant by abstract class?
Is int primitive data type?
Does list allow duplicates in java?
Why is stringbuffer thread safe?
Explain Basics of OOP Language in java
What are green threads in java?
What is the difference between iterator and list iterator?
What happens when a thread cannot acquire a lock on an object in java programming?
What is the difference between abstract class and interface1? What is an interface?
What is a ternary operator in java? What is an interface?
Does java arraylist maintain insertion order?
How to access arraylist elements in java?
When a byte datatype is used?