0
Try catch block
Why doesn't the try catch block catch this exception?.... shouldn't it catch all exceptions? https://code.sololearn.com/cZfqMiLLcx1H/?ref=app
4 Respostas
+ 4
Because the compiler catch it first. catch will catch exceptions at runtime.
0
Why is this?
0
Just search for the difference between compile errors and runtime errors and you will find an answer.
0
Aaaaah I hadn't seen the runtime part...thanks... I get it now