Exceptions in java is the way of indicating the occurrence of abnormal condition in the program. Actually, these are objects that are thrown when program encounters any problem executing the program further. Different objects are thrown representing the problem occurred. The IOException is thrown to indicate some sort of I/O problem has occurred. This is the general class of exceptions generated when any I/O operation gets failed or interrupted. Its sub classes provides more specific information about the specific problem during the operation. These exception can be generated in the situations like failing to open the file, error during the execution of a remote method call, error finding IP address of a host etc.
Liked it! Share this Tutorial