Java BitSet isEmpty() methodThe isEmpty() method of Java BitSet class returns true if this BitSet does not contain any bits which are set to true. Syntax:Parameter:NA Returns:The isEmpty() method returns a Boolean value true or false on the basis of this BitSet is empty or not. Exception:NA Compatibility Version:Java 1.4 or above Example 1Output: bitset1: {1, 2, 3, 4} bitset2: {} bitset1 isEmpty: false bitset2 isEmpty: true Next TopicJava-bitset-intersects-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India