Java – Create a GUID in Java

guidjava

What are some of the best ways to create a GUID in Java?

Best Answer

java.util.UUID.randomUUID();