Another interview question which was expecting a true / false answer and I wasn’t too sure.
Another interview question which was expecting a true / false answer and I wasn’t
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
finallyis executed most of the time. It’s almost all cases. For instance, if an async exception (likeStackOverflowException,OutOfMemoryException,ThreadAbortException) is thrown on the thread,finallyexecution is not guaranteed. This is why constrained execution regions exist for writing highly reliable code.For interview purposes, I expect the answer to this question to be false (I won’t guarantee anything! The interviewer might not know this herself!).