A Guide to BitSet in Java

Learn how we can use a Java BitSet to represent a vector of bits, gett familiar with the BitSet internals, and take a closer look at its API

When Does JPA Set the Primary Key

Learn about the different strategies JPA uses to generate the primary key for an entity and at which moment each strategy sets the key value during persistence.

Set Operations in Java

Learn the differences between union, intersection, and relative complement, and how to represent each in Java.