1.

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

A. Y
B. O
C. U
D. 3
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs