In an Interview,Interviewer asked to me.. that I have a code which written in side the try and catch block like
try
{
//code line 1
//code line 2
//code line3 -- if error occur on this line then did not go in the catch block
//code line 4
//code line 5
}
catch()
{
throw
}
suppose we got an error on code line 3 then this will not go in the catch block but If I got error on any other line except line 3 it go in catch block
is this possible that if error occur on a particular line then it is not go in the catch block?