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


Please Help Members By Posting Answers For Below Questions

how to one war file class to another war file class?

1558


How do you add an element to a set in java?

502


Is main a function?

518


How to make a write-only class in java?

579


When should the method invokelater() be used?

586






Explain what do you mean by functional overloading in java?

557


What do you mean by platform independence of Java?

538


Is it possible for yielded thread to get chance for its execution again ?

555


What is java literals?

584


When should we create our own custom exception classes?

589


What is method in java ?

631


What is locale in java?

579


Explain wait(), notify() and notifyall() methods of object class ?

605


Is java written in c?

548


What is local class in java?

526