Home » JAVA Programming » Collections » Question
  1. What is the output of this program?
    import java.util.*;
    public class Bitset_Exmple
    {
    public static void main(String args[])
    {
    BitSet object = new BitSet(10);
    for (int k = 0; k < 6; ++k)
    object.set(k);
    System.out.print(object.get(6));
    }
    }
    1. 6
    2. 10
    3. True
    4. False
    5. None of these
Correct Option: D

false



Your comments will be displayed only after manual approval.