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


Please Help Members By Posting Answers For Below Questions

How do you declare an array that will hold more than 64KB of data?

639


What is difference between static variable and global variable?

550


What is abstract class? Explain

597


how to one war file class to another war file class?

1554


Which is the class in java?

521






Add a value x to array from index l to r where 0 <= l <= r <= n-1

633


What are exceptions

642


Can you tell me range of byte?

561


What is an object in java and how is it created?

591


Explain garbage collection in java?

549


Can we clone singleton object?

564


How many threads does a core java have?

511


What data type is string java?

538


Can you call a method in a method?

533


What is string example?

597