What is Exception: Excetion is a runtime error caused due to logical mistake occured in the program beacause of wrong input given by the User. According to Java language, value, message or excpetion everything is an object. In function programming, we return value. Throwing exception is like returning value and If we see according to User,methods are just services nothing else. What is our(developer's) responsibility: We must convert Java Exception message into End User Understandable.Here, Conversion I mean,catching Exception object and get information using getters provided such as getMessage() and modify this message with End user understandable format. Sun Microsystem(now Oracle) defined several classes to represent and handle logical mistakes. All these classes are defined in java.lang package with a super class Throwable. All Exception handling classes categorized into two sub-categories: Error Exception Exception classes a...
http://javabyshashank.blogspot.com - The ultimate resource to learn java easily - This blog is for java developer at beginner level as well as expert level