Java · Medium · ProWhat is a BitSet in Java? When is it more memory-efficient than a boolean array?JavaCollections