blob: 139b4c401f0cd3194dfcd2865509c08f7635a182 (
plain) (
tree)
|
|
nested1:
Innermost finally
Outermost finally
nested2:
Innermost finally
Outermost finally
mixed:
10
Finally!
withValue1:
Oh, oh
10
withValue2:
droped a null
null
method2:
10
Exception occurred
method3:
Cought an NPE
tryFinallyTry:
Silently ignore exception in finally
valInFinally:
Abc
tryAndValInFinally
Abc
=================
NoExcep.method2:
Hello, world
NoExcep.method3:
method3
NoExcep.method4:
..
Return inside body:
Normal execution...
inner finally
Outer finally
Return inside synchronized body:
Synchronized normal execution...
inner finally
Outer finally
Return inside body and return in finally:
Normal execution...
inner finally
Outer finally
Return inside body and return in finally inside finally:
Normal execution...
inner finally
finally inside finally
Outer finally
|