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 common language specification (cls)?
What are three common acronyms used in .net, and what do they stand for?
i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?
What's singlecall activation mode used for in .net?
How do I use the thread pool?
Which namespace is used to support multithearding in .NET?
Is .net core the future?
Write a program to create a user control with name and surname as data members and login as method and also the code to call it.
How viewstate is being formed and how it's stored on client in .net?
Define code access security (cas)?
Explain Different kinds of methods?
Tell us what is the difference between struct and class?
What is Complex Class in .NET?
What tools can I use to develop .net applications?
What is jit compilers?