Question: What is the output of below code? java.util.Map map = new java.util.HashMap ( ) ; map.put ( 4 , 1 0 0 ) ; map.

What is the output of below code?
java.util.Map map =
new java.util.HashMap();
map.put (4,100) ;
map. put (2,200);
map.put (6,300);
map. put (1,400);
map. put (5,500);
map. put (3,600);
map.putAll (map) ;
System. out.println (map) ;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!