Archive for the ‘ Checked vs Unchecked exception ’ Category

Checked vs Unchecked exception

Checked Exception Unchecked Exception
Forces clients to handle it Clients may not handle it
All exceptions except RuntimeException , Error and their subclasses come under checked exception All RuntimeException , Error and their subclasses come under unchecked exception
Advertisements