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
How do you calculate roots in java?
What is hashmap and map?
What is sortedset in java?
Can singleton class be inherited in java?
Is java a digit method?
What is the difference between method overriding and overloading?
What are the advantages of defining packages in java?
What is the use of math abs in java?
Write a program to find the whether a number is an Armstrong number or not?
How do you do exponents in java?
Explain different ways of creating a thread?
How would you convert bytes to string?
Explain list interface?
Can one thread block the other thread?
What are the drawbacks of singleton class?