alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (exceptions-2.check)

This example Scala source code file (exceptions-2.check) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

abc, abc, hello, innermost, normal, normal, npe, outer, outer, outermost, return, return, silently, throw

The Scala exceptions-2.check source code

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:
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

 

new blog posts

 

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.