adspace


Can a try block have nested try blocks?

Answer Posted / Ravi Raushan

Yes, a try block can contain other try blocks. However, it's important to remember that when an exception is encountered within a try block, control immediately jumps out of all nested try blocks and any associated finally blocks are executed before continuing with the catch or finally block of the outermost try.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1143