Is it possible开发者_开发知识库 to catch the Ctrl+C signal in a java command-line application? I\'d like to clean up some resources before terminating the program.You can attach a shutdown hook to the