+ 2
Why does this not work (Java Exepctions)
What do I need to do to trigger the Exepction block? https://code.sololearn.com/c4glCZspZ4to/?ref=app
4 Risposte
+ 8
It doesn‘t work because you are trying to assign an undeclared variable to x which results in a compile-time error. Exceptions can be caught during runtime only.
+ 5
Cam UOR You’re welcome. Glad I could help. ;)
+ 2
x=1/0; for example
+ 1
_cm_ Ah thank you for explaining the difference now I understand.