1.

Which class in Java can be used to represent bit array?(a) BitSet(b) BitVector(c) BitArray(d) BitStreamThis key question is from Bit Array topic in chapter Arrays Types of Data Structures & Algorithms IThis question was posed to me during an interview.

Answer»

The CORRECT choice is (a) BitSet

The explanation is: The BitSet class CREATES a special TYPE of array that can HOLD bit values.



Discussion

No Comment Found

Related InterviewSolutions