Live quiz

java - Part 66

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following Java code? 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)); obj.clear(); System.out.print(obj.size()); } }

  • A
  • B
  • C
  • D