Get a unique identifier Using java.rmi.dgc.VMID in Java

Description

The following code shows how to get a unique identifier Using java.rmi.dgc.VMID.

Example


//  w w  w .j a  va  2  s .  c o  m
public class Main {
  public static void main(String arg[]) {
    System.out.println(new java.rmi.dgc.VMID().toString());
  }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    Development »




Java Algorithms
Java Clipboard
Java Compiler
Java Desktop
Java Virtual Machine
Java Math
OS
Random
Java Robot
Java RuntimeMXBean
Java Timer
Java UUID
Java Internationalization