1.

What is the output of this program?import java.util.*; public class hashtable { public static void main(String args[]) { Hashtable object = new Hashtable(); object.put("D", new Integer(30)); object.put("E", new Integer(70)); object.put("F", new Integer(60)); object.remove(new String("E")); System.out.print(object); } }

A. {F=60, D=30, E=70}
B. {D=30, E=70}
C. {F=60, D=30}
D. {D=30, E=70, F=60}
E. None of these
Answer» D. {D=30, E=70, F=60}


Discussion

No Comment Found

Related MCQs