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 {
In a word, yes.
Code in the finally block in Java always executes unless:
(from: http://java.sun.com/docs/books/tutorial/essential/exceptions/finally.html)
So, unless you explicitly call System.exit(int), or kill the process or thread externally, you can rely on it.