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
1 Respuesta
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. :)