✏️ Explanatory Question

What are the two direct subclasses of the Throwable class?

👁 45 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

The two direct subclasses of the Throwable class are:

  1. Error – represents serious problems that are not usually handled by applications.

  2. Exception – represents conditions that applications might want to catch and handle.