Question: What is the output of this program? (a) 0 (b) 1 (c) True (d) False import java.util. *; class vector { } public static void

What is the output of this program?import java.util. *; class vector { } public static void main(String args []) { Vector obj= new Vector (4,

(a) 0

(b) 1

(c) True

(d) False

import java.util. *; class vector { } public static void main(String args []) { Vector obj= new Vector (4, 2); obj.addElement (new Integer (3)); (new Integer (2)); obj.addElement obj.addElement (new Integer (5) ); obj.removeAll (obj); System.out.println (obj .isEmpty () ); }

Step by Step Solution

3.49 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Advanced Java Programming Questions!