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 / zzzz
Unresolved compilation error will come.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of arraylist in java?
Is stringwriter thread safe?
Does java arraylist maintain insertion order?
How do you create immutable object in java?
What is the r character?
Explain the difference between jdk, jre, and jvm?
What is meant by 'bit masking' in java?
What is the purpose of checked and unchecked exceptions in JAVA?
Difference between vector and arraylist.
What are the Static and Dynamic Variables? Differentiate them.
Can we create constructor in abstract class ?
Is 9 a prime number?
What is the best way to findout the time/memory consuming process?
How will you compute size of a structure?
Is 0 a real number?