if i am running code
try
{
line one
line 2
line 3
.
.
.
.
}
catch(Exception x)
{
}
now if exception occurs at any line i dont know and we do some stuff in catch so that exception dose not occur again at that line now we need to goback to line from where exception occurred and execute same line how can we do that?
Assuming this is Java, you can’t do that – once the exception is thrown, nothing in the rest of the
tryblock will be executed. You would have to use multiple try/catch blocks to explicitly do what you want:…etc.