|
-
Sep 21st, 2006, 09:39 AM
#1
Thread Starter
Frenzied Member
try catch question
hello
in the following code
[code]
try {
//line 1
//line 2
//line 3
//line 4
} catch(exception e){
//code to handle exception
}
if line 2 throws the exception, after the exception has been handled by the code in the ctach block is execution returned to line3, or code following the try block
-
Sep 21st, 2006, 09:58 AM
#2
Re: try catch question
No, other lines will not execute, if you want them to execute put each line in a separate try catch block
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Sep 21st, 2006, 04:49 PM
#3
Thread Starter
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|