Question: why use uuid in java?
Answer: UUID class in Java. A class that represents an immutable universally unique identifier (UUID). A UUID represents a 128-bit value. ... It is also used to create transaction id.