[Solved] Which class in Java can be used to represent bit array?

Which class in Java can be used to represent bit array?

a) BitSet
b) BitVector
c) BitArray
d) BitStream

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

Comments