exception must be caught or declared to be thrown code example
Example 1: unreported exception ServletException; must be caught or declared to be thrown
public static void main(String[] args) throws Exception
Example 2: IOException; must be caught or declared to be
IOException; must be caught or declared to be