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


Please Help Members By Posting Answers For Below Questions

Differentiate between array list and vector in java.

628


Can an unreferenced object be referenced again?

756


What are the 6 mandatory procedures for iso 9001?

525


Are floats faster than doubles?

559


What is the implementation of destroy method in java. Is it native or java code?

475






What is the use of hashmap in java?

545


What are the limitations of procedural programming approach?

523


What does the “final” keyword mean in front of a variable? A method? A class?

540


What do you mean by object?

540


What is the best definition for data?

517


What is object-oriented programming?

565


What is module in project?

511


Is null a string in java?

552


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.

2278


Define jre i.e. Java runtime environment?

572