Runtime.getRuntime().addShutdownHook(new Thread(() -> {
System.out.println("Shutdown started");
System.out.println("Shutdown started");
// Close all the resource locks
System.out.println("Shutdown successful");
}));
}));
No comments:
Post a Comment