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

What is "this" keyword in java? Explain

662


Can a class be private or protected in java?

558


What are heterogeneous objects?

568


What is == and === in javascript?

559


What modifiers may be used with an inner class that is a member of an outer class in java programming?

535






What is meant by class?

543


Can we override protected method in java?

580


Where import statement is used in a java program?

610


What is lazy programming?

569


Is math an abstract class in java?

538


What is the difference between stringbuffer and stringbuilder?

577


How do I know if java is installed?

519


What is the locale class in java programming?

529


What is a war file?

550


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

8623