Java tutorial
import java.util.UUID; import java.util.concurrent.Callable; public class Main { public static void main(String... args) { Callable<UUID> callable = UUID::randomUUID; try { System.out.println(callable.call()); } catch (Exception e) { e.printStackTrace(); } } }