0

What is try {

25th May 2018, 8:31 PM
Juma Abvgdrahmanov
Juma Abvgdrahmanov - avatar
5 Answers
+ 3
Are you attempting a Try and Catch?
25th May 2018, 8:39 PM
Apple Blossom
Apple Blossom - avatar
+ 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
25th May 2018, 8:42 PM
BlazingMagpie
BlazingMagpie - avatar
0
No, im never use try and catch.
25th May 2018, 8:43 PM
Juma Abvgdrahmanov
Juma Abvgdrahmanov - avatar
0
Its a process of handing exceptions !
25th May 2018, 9:22 PM
MD Omer Arafat
MD Omer Arafat - avatar