Results 1 to 3 of 3

Thread: try catch question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    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

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2005
    Posts
    1,069

    Re: try catch question

    oh

    thanks for the reply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width