Click here to Skip to main content
15,910,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
interviewer ask me 1 qstn

there is set of Process A,B,C

A cals B

B Cals C

in A And B there is Exception Handleler But Not in C

Then What Will Happen????
Posted
Updated 17-Oct-12 23:58pm
v2

Then parent process catch will handle the exceptions in this case 'B'.

Thanks,
Ambesha
 
Share this answer
 
If the exception is thrown in C, then it will be caught in B, provided the try...catch block surrounds the call to C. If not, then it will be caught in A, again assuming the try...catch block surrounds the call to B.
 
Share this answer
 
Comments
vivektiwari97701 18-Oct-12 6:04am    
The Same think i told to interviewer but i dont think so he was Satisfied with my Ans.

Thank For Ans. I just want to confirm That my ans was ok or no.
vivektiwari97701 18-Oct-12 6:07am    
and 1 more think if A and C has handeler but not in B...then???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900