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("D", new Integer(4)); object.put("E", new Integer(5)); object.put("F", new Integer(6)); System.out.println(object.keySet()); } }

A. {D=4, E=5, F=6}
B. [D, E, F]
C. [D, E, F] 3
D. [D=4, E=5, F=6]
E. None of these
Answer» C. [D, E, F] 3


Discussion

No Comment Found

Related MCQs