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

Please explain is the jit an interpreter?

580


What is connection pooling and how do you make your application use it?

561


What is meant by managed and unmanaged code?

602


Dynamic Fonts

1450


What is meant by localization?

637






What is assemblies in .net?

621


Please explain what is the difference between constants and read-only variables?

576


What is dot net architecture?

560


What is COM Interoperability in .NET

640


What are asp.net authentication providers and iis security?

533


What are the different.net tools which you used in projects?

541


What are the collections you've used?

575


Explain the difference between asp.net and asp?

565


what will do to avoid prior case?

591


What is dot net and its uses?

546