Interviews4 answers
what is the difference between error and exception?
4 Answers
Error: This is the syntax problem, which leads to complation problem.
Exception:- This is the run time error which interrupts the application execution. (These can be the exceptional cases were the applications logic fail or should fail eg devided by zero).
Ravendra SinghPosted Jun 18, 2015, 3:45 AM EDT
Error: This is the syntax problem, which leads to complation problem.
Exception:- This is the run time error which interrupts the application execution. (These can be the exceptional cases were the applications logic fail or should fail eg devided by zero).
sudhakar GarikipatiPosted Jul 7, 2011, 2:55 AM EDT
Error:
In the terms of programming language, error is include only the compile time such as syntax error .That cant not be handle by any Handler.
Exception:
In the terms of programming language,exception is a logical error such as Stack overflow, array unbounded, one/zero and etc. All the logical error handle by the exception handler such as try-catch ,throws etc.
In the terms of programming language, error is include only the compile time such as syntax error .That cant not be handle by any Handler.
Exception:
In the terms of programming language,exception is a logical error such as Stack overflow, array unbounded, one/zero and etc. All the logical error handle by the exception handler such as try-catch ,throws etc.
Munesh SharmaPosted Mar 24, 2011, 11:18 PM EDT
Exceptions are those which can be handled at the run time
where as errors cannot be handled.
Examples for exceptions: Array out of bonds, attempt to
divide by zero ,etc.
Exceptions can be handled by handlers using try - catch.
Ankit NandekarPosted Mar 24, 2011, 9:55 PM EDT


