Multiple choice technology programming languages

The class AssertionError has "is - a" relationship with which of these classes:

  1. RuntimeException

  2. Error

  3. VirtualMachineError

  4. IllegalAccessException

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Java, the AssertionError class extends Error, which in turn extends Throwable. The 'is-a' relationship refers to inheritance. AssertionError is used when an assertion fails, and Error is the superclass for serious system-level errors that applications should not try to catch. Option B is correct.