Types of Exception
Read about Error and Exception before reading this post to get better understanding
There are two types of Exception
1. Checked Exception
2. Un Checked Exception
Checked Exception:
Exceptions which are indicated by the compiler while writing the code is called checked
Exception.
For example, if we are trying to read file from the location. In that scenario,compiler
warns developer that in this position there may be possibility of Exception occurence. i.e.
Error will be observed when the file is not present in the location ..
These type of Exceptions are checked by the compiler itself and are called checked
Exceptions.
Unchecked Exception:
Exceptions which will not be indicated by the compiler during development is called
Un checked Exception.
All Run time Exceptions are Unchecked Exceptions.
Read about Error and Exception before reading this post to get better understanding
There are two types of Exception
1. Checked Exception
2. Un Checked Exception
Checked Exception:
Exceptions which are indicated by the compiler while writing the code is called checked
Exception.
For example, if we are trying to read file from the location. In that scenario,compiler
warns developer that in this position there may be possibility of Exception occurence. i.e.
Error will be observed when the file is not present in the location ..
These type of Exceptions are checked by the compiler itself and are called checked
Exceptions.
Unchecked Exception:
Exceptions which will not be indicated by the compiler during development is called
Un checked Exception.
All Run time Exceptions are Unchecked Exceptions.
Sign up here with your email
1 comments:
Write commentsI have gone through your post and i found it very helpful. Please do share such kind of interesting post. Otherwise if any One Want Java Training with 30% off So Contact Here-9311002620
ReplyJob Oriented Complete JAVA Training Course
ConversionConversion EmoticonEmoticon