A)
->try keyword is used to create a block of statements.
->in try block we place that part of application code which is doubt full for causing exceptions during program execution.
->if exception is not raised in try block, it is completely executed.
->which in the try block if exception in raised try block gets terminated inside of program getting terminated.
->try block should be succeeded by (fallowed by) one or more catch blocks or finally blocks.
->placing doubtful code in try block is nothing but we are implementing exception handling.
I.e. we are trying to handle the exception but not trying for exceptions.
Comments
Post a Comment