1.

What is the output of this program?
import java.util.*;
public class vector_Example
{
public static void main(String args[])
{
Vector object = new Vector(6,3);
object.addElement(new Integer(10));
object.addElement(new Integer(20));
object.addElement(new Integer(50));
object.removeAll(object);
System.out.println(object.isEmpty());
}
}

A. True
B. False
C. 0
D. 1
E. None of these
Answer» B. False


Discussion

No Comment Found

Related MCQs