What kind of exception must define in Java?
It is important to know when to define a checked or unchecked in Java and also when to apply in place and with the right design pattern, this will allow us according to our need two things:
- Clean source code, unchecked exceptions
- Manageable code, checked exceptions.
Example:
Design before writing source code, is the key to the success of an application.
http://docs.oracle.com/javase/tutorial/essential/exceptions/catchOrDeclare.html