1.

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

A. 2
B. 3
C. 4
D. 6
Answer» D. 6


Discussion

No Comment Found