Exception : An exception is a run time error which arises during during the execution of a program.
There are so many reason for exception
for example :
file not found which should be opened
invalid data
connection lost with the network
Two types of exceptions:
1. Checked Exception : Checked exceptions are exceptions which occurs at compile time. Also called compile time exceptions.
2. Unchecked Exception :Unchecked exceptions are exceptions which occur at the time of execution of a program. These exceptions also called run time exceptions.
There are so many reason for exception
for example :
file not found which should be opened
invalid data
connection lost with the network
Two types of exceptions:
1. Checked Exception : Checked exceptions are exceptions which occurs at compile time. Also called compile time exceptions.
2. Unchecked Exception :Unchecked exceptions are exceptions which occur at the time of execution of a program. These exceptions also called run time exceptions.