Exception Handling in Java
The Exception Handling in Java is one of the powerful mechanism to handle the runtime errors.Exception Handling is the mechanism to handle runtime malfunctions. We need to handle such exceptions to prevent abrupt termination of program. The term exception means exceptional condition, it is a problem that may arise during the execution of program.
Exception
An exception (or exceptional event) is a problem that arises during the execution of a program.When an Exception occurs the normal flow of the program is disrupted and the program or Application terminates abnormally
Some situation when exception have occurred;
- Invalid input enter by user
- File that try to open is not found
- JVM out of memory
This is best website for Java Tutorial. It's completely free for every one.
ReplyDelete