Your exception will not be caught, but the finally block will be called and executed eventually. You can write a quick method as shown below and test it:
public void testFinally(){
try{
throw new RuntimeException();
}finally{
System.out.println("Finally called!!");
}
}
source
share