Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY/CATCH question
Message
 
 
À
18/01/2010 14:10:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01444571
Message ID:
01444597
Vues:
43
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform