If we write a goto or a return statement in try and catch
block will the finally block execute?
Answer Posted / om namo bagavathe vasudevaya n
what ever goto or continue statement you used in try/catch
the finally bolck must be executed
even an exception occuerd or an exception not occured in the
try block the finally block defanetly executed
but they are some excptions like system exceptions and
application exceptions.For this exceptions the finally block
may or may not excute because
SYSTEM EXCEPTIONS:this excptions occur during runtime
examples:some hardware problems
Application Exception:they also probally occur whill the
application is running
example:if we give textbox maximum size limt as 50
characters.If we enter morethan 50 characters then some
exceptions should occur
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
Are attributes inherited c#?
How do I format a string in c#?
What is pure abstract class in c#?
What does void do in c#?
In a single .NET DLL how many classes it contains?
What is Web.config?
Name the method of servicebase class?
Why we use get set property in c#?
What are the different types of literals in c#?
What is the purpose of constructor in c#?
How do I create a new form in c#?
What are controls in c#?
i want the csharp questions&answeres
What is the difference between ref and out in c#?
What is difference between yielding and sleeping?