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("I", new Integer(25));
object.put("L", new Integer(60));
object.put("U", new Integer(20));
object.clear();
System.out.print(object.size());
}
}

A. 4
B. 3
C. 2
D. 1
Answer» F.


Discussion

No Comment Found

Related MCQs