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
Why null value is used in string?
What is string intern in java?
How do you do descending order in java?
How do you check if a string is lexicographically in java?
Does java support multiple inheritances?
Can a class declared as private be accessed outside it’s package?
Why is serialization required?
What is the difference between overriding & overloading?
What is the difference between access specifiers and access modifiers in java?
What is ordered map in java?
In how many ways we can create threads in java?
What defines function?
What is a get method?
What is collection class in java? List down its methods and interfaces.
What does @param args mean in java?