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
What is the base class of Button control in .NET?
Explain the .net framework overview?
What are the security policy levels in .Net
What is garbage collection and how it works. Provide a code example of how you can enforce garbage collection in .net?
Explain webfarm vs webgardens in .net?
Is .net a language?
How will you register com+ services?
Explain the different types of proxy patterns?
What are asp.net authentication providers and iis security?
Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
What are the advantages of .net?
What is the use of gacutil.exe?
Explain what is heap and what is stack?
Explain the garbage collection process?
What is the difference between vb.net and vc#.net?