Monday, March 5, 2012

statements in the finally block go unexecuted



public class Finally {

public static void main(String[] args) {

try {

System.out.println("Start");

System.exit(0); // same as using Runtime.getRuntime().exit(0);

}

finally {

System.out.println("Hello");

}

}

}

No comments:

Post a Comment