What is the output of this program ...?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); } } - Study24x7
Social learning Network
684 followers study24x7 02 May 2019 06:21 PM study24x7 study24x7

What is the output of this program ...?
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)...

See more

A

{0, 1, 3, 4}

B

 {0, 1, 2, 4}

C

{0, 1, 2, 3, 4}

D

{0, 0, 0, 3, 4}

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles