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 / mallu
No error will be generaterd.
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
Does constructor return any value?
What is default switch case? Give example.
What does @param args mean in java?
What is the mapping mechanism used by java to identify IDL language?
Does collectionutils isempty check for null?
Why stringbuilder is not thread safe?
What is the reason behind using constructors and destructors?
What is externalizable interface?
Explain about anonymous inner classes in java?
What are parsers? Dom vs sax parser.
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What are keywords give examples?
How transient variable is different from volatile variable?
What are the advantages of exception handling in java?
What class allows you to read objects directly from a stream?