MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?import java.util.*; public class Map_Example { public static void main(String args[]) { HashMap object = new HashMap(); object.put("I", new Integer(9)); object.put("L", new Integer(12)); object.put("U", new Integer(21)); System.out.println(object.get("L")); } } |
| A. | 9 |
| B. | 12 |
| C. | 21 |
| D. | [I, L, U] |
| E. | None of these |
| Answer» C. 21 | |