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
Explain what is the difference between web application and enterprise application?
Define marshling?
What is namespaces in .net?
What is the benefit of .net core?
How do I spawn a thread?
What does cli do?
What are the differences between an interface and an abstract class in .net?
Is .net a compiler?
What is finalize method in .net?
What is marshling?
What is loosely coupled solution in.net?
What is a web service in .net?
What is .net assembly?
Differences between namespace, class, assembly?
Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?