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,](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/7/8/7/155659cfcd3327c11704787153485.jpg)
(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
Get step-by-step solutions from verified subject matter experts
