Which of the following is the subclasses of RuntimeException?
-
IllegalArgumentException
-
NullPointerException
-
IOException
-
IndexOutOfBoundException
-
ArithmeticException
C
Correct answer
Explanation
IOException is not a subclass of RuntimeException class, this class is a Subclass of Exception class. This exception is thrown when invalid inputs/outputs are given. So, this is the correct answer as this is not a subclass of RuntimeException class.