+1 vote
in Data Structures & Algorithms I by (110k points)
Which class in Java can be used to represent bit array?

(a) BitSet

(b) BitVector

(c) BitArray

(d) BitStream

This key question is from Bit Array topic in chapter Arrays Types of Data Structures & Algorithms I

This question was posed to me during an interview.

1 Answer

+1 vote
by (444k points)
selected by
Best answer
The correct choice is (a) BitSet

The explanation is: The BitSet class creates a special type of array that can hold bit values.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.