1.

What is the output of this program?import java.util.*; public class vector { public static void main(String args[]) { Vector object = new Vector(6,3); object.addElement(new Integer(9)); object.addElement(new Integer(7)); object.addElement(new Integer(3)); System.out.println(object.capacity()); } }

A. 3
B. 6
C. 9
D. 7
E. None of these
Answer» C. 9


Discussion

No Comment Found

Related MCQs