News

It is possible to register a shutdown hook using Runtime.getRuntime().addShutdownHook(...). The Java virtual machine shuts down in response to two kinds of events: The program exits normally, when the ...