结果: >>> shutdown hook registered>>> Sleeping for 5 seconds, try ctrl-C now if you like.>>> Slept for 10 seconds and the main thread exited.
>>> About to execute: ShutdownHook.run() to clean up before JVM exits.0123456>>> Finished execution: ShutdownHook.run()