java asynchronous programming example

54

java asynchronous programming example -

int number = 20;
Thread newThread = new Thread(() -> {
    System.out.println("Factorial of " + number + " is: " + factorial(number));
});
newThread.start();

Comments

Submit
0 Comments