java shutdown hook

50

java shutdown hook -

Thread printingHook = new Thread(() -> System.out.println("In the middle of a shutdown"));
Runtime.getRuntime().addShutdownHook(printingHook);

Comments

Submit
0 Comments