Does finally always execute in Java?
finally will be called.
The only time finally won't be called is: if you call System.exit(), another thread interrupts current one, or if the JVM crashes first.
finally will be called.
The only time finally won't be called is: if you call System.exit(), another thread interrupts current one, or if the JVM crashes first.