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;
/* ww w. ja va 2 s.c o m*/
public class Main {
public static void main(String arg[]) {
System.out.println(new UUID(123456789L,123456789L));
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.util »
Java Tutorial »
java.util »