Java资源回收

资源回收的时机

1
2
3
4
5
java ShutdownHookTest

ps -aux | grep ShutdownHookTest

kill -15 6483

ShutdownHookTest