A default catch block catches
22 views
- all thrown objects
- no thrown objects
- any thrown object that has not been caught by an earlier catch block (Correct Answer)
- all thrown objects that have been caught by an earlier catch block
Explanation
Option C is correct: A default catch block catches any thrown object that has not been caught by an earlier catch block.
A default catch block is a catch block that doesn't specify the type of exception it catches. It is usually specified as the last catch block in a try-catch statement, after all other catch blocks that handle specific types of exceptions.
The purpose of a default catch block is to catch any exception that is not caught by the preceding catch blocks.
Therefore, option C is the correct answer.