The class AssertionError has "is - a" relationship with which of these classes:
-
RuntimeException
-
Error
-
VirtualMachineError
-
IllegalAccessException
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.