1.

What is the output of this program?import java.util.*; public class Bitset_Example { public static void main(String args[]) { BitSet object = new BitSet(10); for (int K = 0; K < 6; ++K) object.set(K); object.clear(2); System.out.print(object.length() + " " + object.size()); } }

A. 6 60
B. 60 6
C. 6 64
D. 64 6
E. None of these
Answer» D. 64 6


Discussion

No Comment Found

Related MCQs