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 array and arraylist in java?
What is the difference between == and === javascript?
What is fail fast in java?
Why packages are used?
What initialize variables?
Explain about the dynamic behavior of core java?
What is the purpose of static methods and static variables?
What is variable and rules of variable?
I want to persist data of objects for later use. What’s the best approach to do so?
Can abstract class have private constructor?
What is the main difference between java platform and other platforms?
What’s the difference between unit, integration and functional testing?
Can we cast any other type to boolean type with type casting?
What is a instance variable in java?
Explain the difference between static and dynamic binding in java?