ExamVeda
Login
Home
Collections Framework in java
?

What will be the output of the following Java 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);
    }
}

Answer & Solution
Correct Answer: Option A
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.