1.

What is the output of this program?
 import java.util.*; class hashtable { public static void main(String args[]) { Hashtable obj = new Hashtable(); obj.put("A", new Integer(3)); obj.put("B", new Integer(2)); obj.put("C", new Integer(8)); System.out.print(obj.toString()); } }  

A. {AB, BC, CD}
B. [AB, BC, CD].
C. [3, 2, 8].
D. {3, 2, 8}
Answer» C. [3, 2, 8].


Discussion

No Comment Found