Java generates UUID, java generates uuid
UUID (Universally Unique Identifier) is a globally Unique Identifier. It is a 128-bit long number and generally expressed in hexadecimal notation.
The core idea of the algorithm is to generate a UUID Based on the machine's Nic, local time, and a random number. UUID is a new class in 1.5.
In java. util, you can use it to generate a globally unique ID. The unique defect of UUID is that the generated result string is long.
Public class Test {/*** @ param args * @ throws Exception */public static void main (String [] args) throws Exception {UUID uuid = UUID. randomUUID (); // uuid generation System. out. println (uuid); // output generated }}
How to generate UUID like Java in C #
UUID does not know, but it is similar to using GUID.
Private void button1_Click_1 (object sender, System. EventArgs e)
{
Guid guid = Guid. NewGuid ();
MessageBox. Show (guid. ToString ());
}
[Java] Can I generate a unique UUID using the following method?
Of course you can. No problem!