Tell me something about Exceptions. What is the common
exception class?

Answers were Sorted based on User's Feedback



Tell me something about Exceptions. What is the common exception class?..

Answer / nitin

Exception is error which is generally Generated by the
Application during at runtime.

System.Exception is the common exception class

Is This Answer Correct ?    4 Yes 0 No

Tell me something about Exceptions. What is the common exception class?..

Answer / tiger kumar

Exception is used to handle the errors during the runtime of
the process.It has the three parts.Try,Catch,Finally.The try
is the part of the set of code.Whenever the errors occur in
the Try block it comeout from the try block and the catch
block handles exception class the error.
Finally is little differ from the catch.Because Finally is
must executable part whether it has error or not.

Mostly which is used for close the objects.

try
{
int i =10;
int sum =i/0;
Response.Write("sum is:"+sum);
}
catch(Exception oEx)
{
Response.Write("Error:"+oEx.ToString());
}
catch(DivideByZeroException oEx1)
{
Response.Write("Error:"+oEx1.ToString());
}

Is This Answer Correct ?    3 Yes 1 No

Tell me something about Exceptions. What is the common exception class?..

Answer / vinoth

Exception is one that occurs in runtime.The general
exception class is Exception.This class is the base of
every exception.This class is able to catch all types of
exception.

Is This Answer Correct ?    2 Yes 1 No

Tell me something about Exceptions. What is the common exception class?..

Answer / karthick

An excepion is an erroneous situation that occurs during
program execution.The error is handled through the process
of exception handling.All excetions are derived from the
System.Exception class,which is the parent class of all
exception.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Sharp Interview Questions

Is c# a backend language?

0 Answers  


What is the default value of date?

0 Answers  


Advantages of c# over vb.net?

3 Answers   HCL, Syntel,


Differentiate between sqlclient oledb and providers?

0 Answers  


What is the difference between readonly and const

4 Answers   Emphasis,






What is a boolean c#?

0 Answers  


What is an object pool in .net?

0 Answers  


Can a class have static constructor?

0 Answers  


Do events have return type c#?

0 Answers  


hi In my database i put id column as identity(the database is incremented by it self only)what i want is if i enter a data in my website, id will come automatically can u pl z tell me the code thax in advance

1 Answers  


What is the difference between class and namespace?

0 Answers  


How is exception handling implemented in c#?

0 Answers  


Categories