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
Can you declare the main method as final?
Does importing a package imports its sub-packages as well in java?
Write code of any action class?
Explain JMS in detail.
Can static methods be inherited?
What is sorting in java?
What is the size of an array?
Is string is a keyword in java?
What is a void in java?
What is integer size in java?
How are variables stored in memory?
Outline the major features of java.
What do you mean by default constructor in java?
What is the difference between class forname and new?
What are the types of sockets in java?