throws exception java example
Example: java throws exception on method
static void testMethod() throws Exception {
String test = null;
test.toString();
}
static void testMethod() throws Exception {
String test = null;
test.toString();
}