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
Differentiate between array list and vector in java.
Can an unreferenced object be referenced again?
What are the 6 mandatory procedures for iso 9001?
Are floats faster than doubles?
What is the implementation of destroy method in java. Is it native or java code?
What is the use of hashmap in java?
What are the limitations of procedural programming approach?
What does the “final” keyword mean in front of a variable? A method? A class?
What do you mean by object?
What is the best definition for data?
What is object-oriented programming?
What is module in project?
Is null a string in java?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
Define jre i.e. Java runtime environment?