1.

What is the output of this program?
 import java.util.*;
public class Bitset_Example
{
public static void main(String args[])
{
BitSet object0 = new BitSet(12);
BitSet object1 = new BitSet(15);
for (int k = 0; k < 7; ++k)
{
object0.set(k);
}
for (int k = 3; k < 15; ++k)
{
object1.set(k);
}
object0.and(object1);
System.out.print(object0);
}
}

A. {3, 4, 5}
B. {4, 5, 6}
C. {4, 5}
D. {3, 4, 5, 6}
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs