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 to find the largest value from the given array.
Difference between java and javascript
Why do we use predicate in java?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What are the benefits of java?
How can you read an integer value from the keyword when the application is runtime in java? example?
How do you test a method for an exception using junit?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Difference between collection, collection and collections in java?
What is byte code and why is it important to java’s use for internet programming?
How can you write a loop indefinitely in java programming?
What are the main uses of java?
how can you catch multiple exceptions in java?
How many types of constructors are used in java?
Can you create an object of an abstract class?