Java Data Type Tutorial - Java UUID(long mostSigBits, long leastSigBits) Constructor








Syntax

UUID(long mostSigBits, long leastSigBits) constructor from UUID has the following syntax.

public UUID(long mostSigBits, long leastSigBits)

Example

In the following code shows how to use UUID.UUID(long mostSigBits, long leastSigBits) constructor.

import java.util.UUID;

public class Main {
  public static void main(String arg[]) {
    System.out.println(new UUID(123456789L,123456789L));
  }
}

The code above generates the following result.