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 does split function do in java?
Why is the main method static?
Is arraylist sorted in java?
Why hashcode is used in java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Explain about exception propagation?
What is port number in java?
Explain about procedural programming language or structured programming language and its features?
What is hasnext in java?
Which package has light weight components in java programming?
What is java beans?
What is application tier?
What is downcasting?
List some oops concepts in java?
Which variable is the independent variable?