Yes, you're right.
This is the correct answer:
Inside Try
IOException Caught
Inside Finally
After End Try
Regards,
M, MCP (70-316)
>-----Original Message-----
>Dear all,
>While studying in some study guide for 316, I found a
question that asks for
>the output of the following code.
>
>try {
> Debug.WriteLine("Inside Try");
> throw(new IOException());}
>catch (IOException e) {
> Debug.WriteLine ("IOException Caught");}
>catch (Exception e) {
> Debug.WriteLine("Exception Caught");}
>finally {
> Debug.WriteLine ("Inside Finally");}
>Debug.WriteLine ("After End Try");
>
>- I tried this code and the output as I expected was
>
>Inside Try
>IOException Caught
>Inside Finally
>After End Try
>
>- But the answer in the study guide was
>Inside Try
>IOException Caught
>Inside Finally
>
>Am I right? or what?
>
>Thanks in advance
>Yours,
>Ehab Zaky
>
>
>.
>
|