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
how to one war file class to another war file class?
How do you add an element to a set in java?
Is main a function?
How to make a write-only class in java?
When should the method invokelater() be used?
Explain what do you mean by functional overloading in java?
What do you mean by platform independence of Java?
Is it possible for yielded thread to get chance for its execution again ?
What is java literals?
When should we create our own custom exception classes?
What is method in java ?
What is locale in java?
Explain wait(), notify() and notifyall() methods of object class ?
Is java written in c?
What is local class in java?