|
Scala example source code file (exceptions-2.check)
The Scala exceptions-2.check source codenested1: 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: Caught 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 Throw in catch and finally: ABC Return with finally clause that cleans the stack Normal execution... inner finally Outer finally Other Scala examples (source code examples)Here is a short list of links related to this Scala exceptions-2.check source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.