Java Exceptions Quiz(Beginner Level) total-qa June 13, 2025 June 13, 2025 No Comments on Java Exceptions Quiz(Beginner Level) 1. Which of the following is a checked exception? NullPointerException IOException ArithmeticException ArrayIndexOutOfBoundsException 2. What happens if a method throws a checked exception but does not declare it in the method signature or handle it? Program compiles and runs normally Compile-time error occurs Runtime error occurs Exception is ignored 3. Which of the following is a runtime exception? ClassNotFoundException NumberFormatException IOException FileNotFoundException 4. Which keyword is used to manually throw an exception in Java? throw throws try catch 5. What is the output of the following code? try { int a = 10 / 0; } catch (ArithmeticException e) { System.out.println("Exception caught"); } Compile-time error Runtime error Exception caught Program terminates silently Loading … Question 1 of 5