do you need throws with catch in java code 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();
}