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 declare an array that will hold more than 64KB of data?
What is difference between static variable and global variable?
What is abstract class? Explain
how to one war file class to another war file class?
Which is the class in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What are exceptions
Can you tell me range of byte?
What is an object in java and how is it created?
Explain garbage collection in java?
Can we clone singleton object?
How many threads does a core java have?
What data type is string java?
Can you call a method in a method?
What is string example?