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 Help Members By Posting Answers For Below Questions

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..

1594


What is equivalent for regsvr32 exe in .net ?

768


Explain what is the difference between a class and an object, and how do these terms relate to each other?

629


What are the advantages of .net?

622


What is the difference between encrypting a password and applying a hashing?

715






Is .net a language?

659


What does msil do?

646


Differences between dll and exe?

705


I'm having some trouble with cas. How can I troubleshoot the problem?

664


Explain the garbage collection process?

729


What data providers available in .net to connect to database?

606


How we can achieve Connection pooling in .Net?

734


What is the concept of inheritance in .net?

695


Do you know what is lambda expressions in c#?

639


Explain .net framework overview?

663