This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 18509
    
  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)
 
Consider Paul's rocket mass heater.
 
subject: try catch and finally blocks
 
Similar Threads
Try an Finally Working Confusion
try,catch and finally blocks
try catch and finally blocks
"return" inside the try-catch-finally