Splitting "javachamp 2009" string with either '\\s' or ' ' regex expression gives 2 strings: "javachamp" and "'2009". Parsing string "2009" gives integer 2009.
The code will print 2009 followed by finally.
finally's body will be executed no matter an exception is thrown or not
|
Oracle Certified Professional Java Programmer
Author:
JavaChamp TeamSenior Java Developer
QuizOver.com
Germany
Access: |