What is an Exception? How many exceptions exist in Dot net
and explain them?
Answer Posted / manikanta.srinu
Exception is not an error,It's abnmormal
condition.Exceptions will be raise at runtime.if you want
to handle exception,we can use try-catch block.
There are 2 types of exception.
1).System Exception
2).Application Exception
The above two exception are genarated from "Exception" base
class.
SystemException: is meant only for those exceptions defined
by the common language runtime.
Ex:NullReferenceException
ApplicationException: is thrown by a user program.
By using this,we can throws our own exception message.
Is This Answer Correct ? | 20 Yes | 0 No |
Post New Answer View All Answers
Please explain is the jit an interpreter?
What is connection pooling and how do you make your application use it?
What is meant by managed and unmanaged code?
Dynamic Fonts
What is meant by localization?
What is assemblies in .net?
Please explain what is the difference between constants and read-only variables?
What is dot net architecture?
What is COM Interoperability in .NET
What are asp.net authentication providers and iis security?
What are the different.net tools which you used in projects?
What are the collections you've used?
Explain the difference between asp.net and asp?
what will do to avoid prior case?
What is dot net and its uses?