Vidyalelo
Java Programming · Q109

Java Collections Framework

Programming · Java Programming · question 109

Q109

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.
0
Answer
B.
1
C.
2
D.
3

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board