Any exceptions are there which are not caught by any catch
blocks?
what are they?
Answer Posted / piyush sharma
1) If you are writting managed Code and using proper try
catch block then there
is no such exception which cannot be caught. Yes, But
sometimes it happens
that you have written correct try catch block but exception
is still
unhandled. This type of exception is called First Chance
Exception. As you
can come across it while developing web services or working
with threads.
Now What is a first chance exception?
When an application is being debugged, the debugger gets
notified whenever
an exception is encountered At this point, the application
is suspended and
the debugger decides how to handle the exception. The first
pass through this
mechanism is called a "first chance" exception. Depending
on the debugger's
configuration, it will either resume the application and
pass the exception
on or it will leave the application suspended and enter
debug mode. If the
application handles the exception, it continues to run
normally.
2)The only one I can think of
offhand is StackOverflowException, since a catch block, or
any of the
global exception handlers you can write require stack space
in order to
execute. If you're out of stack you can't call anything...
including an
exception handler.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can a static class have a constructor c#?
What does writeline mean?
What is field in c#?
What is generic method in c#?
What is the purpose of escape sequence?
What is difference between field and property in c#?
What is the name of c# compiler?
Explain About Iunknown interface Queue
What are the collections in c#?
Explain inheritance in c#?
If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.
What is unmannaged code and will CLR handle this kind of code or not .
Define using statement in c#?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
What is the process of delegation?