Which of the following is a checked exception?
a) NullPointerException
b) RuntimeException
c) ArrayIndexOutOfBoundsException
d) IOException
Solution: d) IOException
Explanation: IOException is a checked exception, which means that it must be either handled or declared.