Question: What is the output of this program? (a) {0, 1, 3, 4} (b) {0, 1, 2, 4} (c) {0, 1, 2, 3, 4} (d) {0,
What is the output of this program?![import java.util. *; class Bitset { public static void main(String args[]) { BitSet obj = new BitSet (5); for](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/7/8/7/216659cfd108dc361704787214763.jpg)
(a) {0, 1, 3, 4}
(b) {0, 1, 2, 4}
(c) {0, 1, 2, 3, 4}
(d) {0, 0, 0, 3, 4}
import java.util. *; class Bitset { public static void main(String args []) { BitSet obj = new BitSet (5); for (int i = 0; i < 5; ++i) obj.set(i); obj.clear (2); System.out.print (obj); }
Step by Step Solution
3.53 Rating (170 Votes )
There are 3 Steps involved in it
a... View full answer
Get step-by-step solutions from verified subject matter experts
