import java.util.UUID; public class UUIDExample { public static void main(String[] args) { UUID uuid = UUID.randomUUID(); long lsBits = uuid.getLeastSignificantBits(); System.out.println("Least significant bits: " + lsBits); } }In this example, a new UUID is generated using the randomUUID() method, and the least significant bits of that UUID are retrieved using the getLeastSignificantBits() method. The value of the least significant bits is then printed to the console. The UUID class is part of the java.util package, which is included in the Java Standard Library.