0
What is try {
5 Respostas
+ 3
Are you attempting a Try and Catch?
+ 1
You do try when you want to do come code that throws exceptions. With exceptions you can, if I may say it, postpone handling some sort of error.
Like in this code my function throws IllegalArgumentException when it can't recognize the input and I catch the error in main method, printing the error message and halting calculation:
https://code.sololearn.com/cYyXfA2VNmK0/?ref=app
0
No, im never use try and catch.
0
Its a process of handing exceptions !