+ 19
C# (try-catch) - SEEMINGLY CONTRADICTING QUESTIONS!... 🤔
https://www.sololearn.com/post/736049/?ref=app The two questions in the link above seem to contradict each other. What is your best explanation for why these are valid questions?
4 Antworten
+ 16
It's a trick question. Read the questions again with focus on the words "used" and "executed"...
+ 14
Tchy, the second one asks if it is poasible to execute several catches at one time (like in a queue), it is not possible. Only one of the defined catch blocks will be exexuted a time.
But you can define as many as you need catch blocks for a single try.
+ 13
Vladimir
That's true.
🤦🏽♂️... Funny how it got me.
+ 3
Please read the questions again with focusing on the words "used" and "executed" or contact me on sololearn