wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes try catch and finally blocks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic
Author

try catch and finally blocks

narasimha munagala
Greenhorn

Joined: Aug 12, 2007
Posts: 7
Hi to everyone
I am new to java i want to know
in all the try ,catch,finally blocks return statements exists
if an exception raised in the try block then which return
statement execute
and if an exception not raised in the try block then
which return stetment execute.
Any one know answer for this question please give me answer
thank you
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

First of all, please do not cross post. It wastes people's time and effort, as they may be answering a question that has already been answered. Second, please choose your forum correctly, as this question has nothing to do with threads.

Anyway, since one of the other threads seems to be moved to the correct forum, I will close this one.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: try catch and finally blocks