+ 4
When is try and catch keywords used? Is it necessary?
If the code is right then does it mean that try and catch keywords aren't used?
6 odpowiedzi
+ 17
I've got examples at the code playground which might be helpful for you:
https://code.sololearn.com/cik0exIc05FE/?ref=app
https://code.sololearn.com/cQVLlvKiWbiz/?ref=app
+ 10
You're welcome ^^
+ 4
when you have user input you have to verify that it has valid value so your code works properly. also when you calculate something you have to make sure that your code works well with the result.
+ 4
Thank you so much.
+ 1
To avoid the program to stop unexpectedly for some reasons
0
your welcome