Question: Can you help me with this Java Question? Question 9 (1 point) Which of the following correctly defines a method that passes an exception back
Question 9 (1 point) Which of the following correctly defines a method that passes an exception back to the caller? public void average(int [] data) throws Exception OI/ code to do some work here if (// some error check test here ) throw Exception( //errstring ) /I code to do more work here public void average(int [] data) throw Exception II code to do some work here if ( // some error check test here ) throws new Exception(//errstring); I/ code to do more work here public void average(int [] data) throws Exception // code to do some work here if (// some error check test here ) throw new Exception(//errstring ) // code to do more work here O All of these work just fine
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
