Which of these method is used to calculate number of bits required to hold the BitSet object?
(a) size()
(b) length()
(c) indexes()
(d) numberofBits()
I have been asked this question during an interview for a job.
The above asked question is from Java.util topic in chapter java.util – The Collections Framework of Java