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
Is main is a keyword?
Which methods cannot be overridden in java?
Do I need java for windows 10?
What is internal iteration in java se 8?
What is the java idl system?
What is a generic code?
What is string in java?
Why do we use variables?
What are the types of literals?
Explain what access modifiers can be used for methods?
What are the benefits of immutable objects?
What are the application of stack?
What does system.gc() and runtime.gc() methods do?
What is the different between get and post?
What are exceptions