Question: Transformative Learning (STLR) Which statement is true? Select one: O a. you should not handle checked exceptions O b. you cannot catch runtime exceptions O

Transformative Learning (STLR) Which statement is true? Select one: O a. you should not handle checked exceptions O b. you cannot catch runtime exceptions O c. all exceptions classes inherit (directly or indirectly) from the Throwable class O d. all the above are true Consider the following code fragment and choose the correct answer (assume class and main method declarations): int [ ] arr1 = {}; System. out . print(arr1[0] ) ;| System. out . print(10/arr1. length) ; Select one: O a. It will throw an ArrayindexOutOfBoundsException. O b. It will throw an ArithmeticException. O c. It will throw both ArrayindexOutOfBoundsException and ArithmeticException. O d. It will not compile because you cannot have an array with no elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
