Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is difference between Exception and Error?

Answer Posted / boopathy

Error : Something goes wrong in our application/program ,
that leads to crash your output/logic is called as error.
the error may be of syntatic error or error which can
easily identify the programmer.

Exception : during the execution(runtime) of our
application/program, the system leads to something wrong
statements like 'system out of memory' 'out of arguments'
called Exception.

Exceptions can easily handle by lot of exception handler in
c# classes(Framework class libraries). Normally C# have 20
different types of exception handler. they are
Exception Class Cause
SystemException A failed run-time check;used as a base
class for other.
AccessException Failure to access a type member, such as a
method or field.
ArgumentException An argument to a method was invalid.
ArgumentNullException A null argument was passed to a
method that doesn't accept it.
ArgumentOutOfRangeException Argument value is out of
range.
ArithmeticException Arithmetic over - or underflow has
occurred.
ArrayTypeMismatchException Attempt to store the wrong type
of object in an array.
BadImageFormatException Image is in the wrong format.
CoreException Base class for exceptions thrown by the
runtime.
DivideByZeroException An attempt was made to divide by
zero.
FormatException The format of an argument is wrong.
IndexOutOfRangeException An array index is out of bounds.
InvalidCastExpression An attempt was made to cast to an
invalid class.
InvalidOperationException A method was called at an
invalid time.
MissingMemberException An invalid version of a DLL was
accessed.
NotFiniteNumberException A number is not valid.
NotSupportedException Indicates sthat a method is not
implemented by a class.
NullReferenceException Attempt to use an unassigned
reference.
OutOfMemoryException Not enough memory to continue
execution.
StackOverflowException A stack has overflown.

Is This Answer Correct ?    19 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between inheritance and encapsulation?

1091


Is string is a class in java?

893


Define packages in java?

945


how can you catch multiple exceptions in java?

968


In which language java is written?

923


How does map works in java?

940


What are the types of casting?

1006


What is nullpointerexception in java?

1038


What is size_t?

934


What is purpose of applet programming?

1134


What is math floor in java?

883


What is static in java?

1020


How do you declare an array that will hold more than 64KB of data?

1190


Which class cannot be a subclass in java?

952


Say any two properties in beans?

1019