User-defined application exception classes are derived from which class?
-
SystemException
-
ApplicationException
-
Both (A) and (B)
-
None of the Above
B
Correct answer
Explanation
In Java EE and CORBA, user-defined application exceptions must extend ApplicationException (or a subclass thereof). SystemException is for system-level errors (transient failures, resource limits). The two hierarchies are separate - application exceptions for business logic errors, system exceptions for runtime failures.