Which of the following is the subclass 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 input/output are given.So this is the correct answer as this is not a subclass of RuntimeException class.