I\'m a Java rookie and I was wondering, if I have the following typical Java code
public class MyApp {
public static void main(String[] args) {
try {
It seems pretty obvious that nothing more will run after JVM quit, or will run code in that killed thread. Obvious. So, when the JVM is running, every code that will run, will run, and after a JVM quit or inside a dead thread , nothing will run, even any kind of code. So, there is no way to prevent, but if there is a need to the finally clause, put it.