Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRY/CATCH question
Message
 
 
To
18/01/2010 14:10:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01444571
Message ID:
01444597
Views:
44
C#

>What was that, Java, or C#?
>
>>Here is the exam question
>>
>>
>>public void methodname()
>>{
>>  try
>>  {
>>    Console.Writeline("A");
>>    int val = int.Parse("8A");
>>    Console.Writeline("B");
>>  }
>>  catch(Exception ex)
>>  {
>>    Console.Writeline("C");
>>    return;
>>  }
>>  finally
>>  {
>>    Console.Writeline("D");
>>  }
>>  Console.Writeline("E");
>>}
>>
>>
>>Possible results
>>
>>a) ABCDE
>>b) ACD
>>c) A0BDE
>>
>>(It was written by chrissie1 in LessThanDot forum).
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform