A.
Catch the exception in the method doSomething().
Catch the exception in the method doSomething().
B.
Declare the exception to be thrown in the doSomething() method signature.
Declare the exception to be thrown in the doSomething() method signature.
C.
Cast the exception to a RunTimeException in the doSomething() method.
Cast the exception to a RunTimeException in the doSomething() method.
D.
Catch the exception in the method that calls doSomething().
Catch the exception in the method that calls doSomething().
A e B
Nessun commento:
Posta un commento