This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Exception handling" Watch "Exception handling" New topic
Author

Exception handling

Gaurav Pavan Kumar Jain
Ranch Hand

Joined: Mar 19, 2007
Posts: 168
Hi Folks

I want to know in which two condition Finally block will not be executed in Exception handling.

Example:-
try
{
\\ some code here
}
catch {
\\ some code here
}

finally{
\\ this block will not executed in two conditions
}


Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707

Hi Folks
I want to know in which two condition Finally block will not be executed in Exception handling.


Case 1:



Case 2:



Regards,
cmbhatt
[ April 19, 2007: Message edited by: Chandra Bhatt ]

cmbhatt
Gaurav Pavan Kumar Jain
Ranch Hand

Joined: Mar 19, 2007
Posts: 168
thank you very much chandra
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception handling