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
If any body working in Infosys, please can u give me the referense to that company because i hered that their is openings for freshers with referal..
What is equivalent for regsvr32 exe in .net ?
Explain what is the difference between a class and an object, and how do these terms relate to each other?
What are the advantages of .net?
What is the difference between encrypting a password and applying a hashing?
Is .net a language?
What does msil do?
Differences between dll and exe?
I'm having some trouble with cas. How can I troubleshoot the problem?
Explain the garbage collection process?
What data providers available in .net to connect to database?
How we can achieve Connection pooling in .Net?
What is the concept of inheritance in .net?
Do you know what is lambda expressions in c#?
Explain .net framework overview?