OOPs Concepts
Programming and Technical
What is the difference between error and an exception?
Read Solution (Total 2)
-
- An error is irrecoverable which occurs due to abnormalities in the program.
Eg- OutOfMemoryError, StackOverflowError
An exception is also an abnornal situation that may lead to unusual termination of program if not handled properly.
Eg- ArithmeticException, NullPointerException - 9 years agoHelpfull: Yes(1) No(0)
- error can be handled by the user but exception cannot be handled.
- 10 years agoHelpfull: Yes(0) No(2)
OOPs Concepts Other Question