|
| Total Answers and Comments: 3 |
Last Update: February 20, 2008 Asked by: sha_kr2001 |
|
| | |
|
Submitted by: nithya_k
Errors can be caught just like how we catch exceptions.Error is a subclass of Throwable.
Classes that derive from Error represent unusual situations that are not caused by program errors, and indicate things that would not normally happen during program execution, such as the JVM running out of memory. Generally, your application won't be able to recover from an Error, so you're not required to handle them. If your code does not handle them (and it usually won't), it will still compile with no trouble.
Above answer was rated as good by the following members: interviewprep9 | Go To Top
|