1.

What is the output of this program?
import java.util.*;
public class HashSet_Example
{
public static void main(String args[])
{
HashSet object = new HashSet();
object.add("I");
object.add("L");
object.add("U");
System.out.println(object + " " + object.size());
}
}

A. [U, I, L]
B. [I, L, U] 3
C. [I, L, U]
D. [U, I, L] 3
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs