Java Reference
In-Depth Information
Exceptional Handling
It is a drawback that affects the performance of java program because it can occur at any
point. It occurrence is at execution state.
Reasons
Invalid data
File absent
Loss of network connection and time out when the JVM is at run.
The common exceptions are.
Checked- These exceptions cannot be forecasted by the programmer and it cannot be even
ignored during.
Runtime- This is a dynamic exception, but it can be ignored unlike the checked one.
Errors- These are also ignored because nothing can be done to overcome it and this is not
under programmer's control.
Exception hierarchy
It has two sub divisions: Input output exception classes and runtime exception class.
Throw
These are exceptions which are thrown by JVM during runtime.
Search WWH ::




Custom Search