MCQOPTIONS
Saved Bookmarks
| 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(5)); object.addElement(new Integer(7)); object.addElement(new Integer(9)); System.out.println(object.elementAt(2)); } } |
| A. | 6, 3 |
| B. | 5 |
| C. | 7 |
| D. | 9 |
| E. | None of these |
| Answer» E. None of these | |