Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!aioe.org!.POSTED!not-for-mail From: Richard Maher Newsgroups: comp.lang.java.programmer Subject: Primitive return value after exception in method Date: Sun, 01 Sep 2013 14:30:31 +0800 Organization: Aioe.org NNTP Server Lines: 20 Message-ID: NNTP-Posting-Host: jOhPn0KFjrxwuMc9OPMmCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:25187 Hi, I know this is a case of suck-it-and see but I'd like a reference to the architectural performance description please. (I'm pretty bad at seeding Google) if: - int fred = -1; try { fred = someMethod(String blah); } catch (e) {}; Now before someMethod raised an exception it had set the designated and referenced RETURN value to say 1, what will the value of fred be? Cheers Richard Maher PS. Sorry again for the Java 101 question but too many beers for the SCJP and for some reason Google does not have an obvious answer.