0

If in try statement an error has occured ,then will the remaining code in try block gets executed(i mean will it get compiled )

detailed description on try statement required

5th Apr 2018, 3:38 AM
viswak reddy
viswak reddy - avatar
1 Réponse
0
Hello Viswak, the answer is no. As soon as an exception occurs in the middle of the try block, the compiler stops executing the program and directly takes is control to the catch block. But of course, in case of syntactic errors, the code will not be compiled. I hope I have answered for question. :)
7th Apr 2018, 5:42 PM
G P
G P - avatar