Map map = new HashMap(2);
map.add(“1”,”one”);
map.add(“2”,”two”);
map.add(“3”,”three”); What will happen at this line?
Answer Posted / mallu
No error will be generaterd.
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
Do loops java?
Explain different states of a thread in java?
How many characters is 16 bytes?
How does split work in java?
What are the advantages of java?
How to do a true java ping from windows?
Can a main method be overloaded?
What is the function of character?
What are the types of inner classes (non-static nested class) used in java?
Difference between Linked list and Queue?
Explain an intermediate language?
What is the purpose of a default constructor?
What is the primitive type byte?
Which class is the superclass for all the classes?
Can we clone singleton object?