This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: try catch and finally blocks
 
It's not a secret anymore!