what is the difference between ERROR and EXCEPTION?
Answers were Sorted based on User's Feedback
Answer / prashant kalmodiya
ERROR : Occurs at complile time
EXCEPTION : Occurs at runtime
| Is This Answer Correct ? | 51 Yes | 7 No |
Answer / poonam
Error are those that do not allow are program to run. Some
errors cannot be fixed at compilation time they are runtime
errors. But exeptions are those that occur because of the
user during runtime which we are unable to avoid.For that we
use exeption handling to handle such kind of errors. These
allow the programs to execute and exit gracefully...
| Is This Answer Correct ? | 23 Yes | 0 No |
Answer / maheswarreddy
error is mistake which takes place in step wise execution of a program.exception is nothing but wat v can catch the error to solve it.
| Is This Answer Correct ? | 16 Yes | 7 No |
Answer / bhagya lakshmi
error is during compilation time it occurs without we post
and exception is we post it with throw,catch
| Is This Answer Correct ? | 11 Yes | 3 No |
Answer / vignesh
Errors can't be prevented. Stop execution abruptly.
Exceptions can be caught and solved.
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / kasturi
error occur at compile time
it expection is also a error that ouccur at run time which can retify using try,throw and catch
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / harsh.chiks
>>ERROR-It occurs at compile time,it just stops the
execution of a program
EXCEPTION-IT occurs at run time,we can handle them by
exception handling.It doesn't abrupt the program execution
| Is This Answer Correct ? | 6 Yes | 4 No |
Answer / novice
exception is a special situation of the program where we
need to deviate from the normal path of execution and define
our own path i.e code to handle it. it is an error like
situation but not actually an error.
error is a wrong opinion given by the user or mistakes and
misconstrued statements made by the programmer which cannot
be resolved by the programmer
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / amitdubey
Errors are the mistakes we make in our progra
ms which we come to know in compile time and exception are the eroors that takes place during runtime.
they can be handled by exception handling
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / umashankar mishra
Exception is runtime entity
error is acompile time entityye
| Is This Answer Correct ? | 2 Yes | 1 No |
What is destructor give example?
me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise
What is the difference between class and structure?
what is the difference between <stdio.h>and "stdio.h"?
Can enum be null?
How is exception handling carried out in c++?
What is polymorphism what are the different types of polymorphism?
What are the fields of vtable
i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output
What is polymorphism and example?
Can a destructor be called directly?
What does it mean when someone says I oop?