What is StackOverflowError and OutOfMemoryError?
-
UncheckedException
-
CheckedException
-
Error
-
UnspecifiedException
C
Correct answer
Explanation
StackOverflowError and OutOfMemoryError are both subclasses of java.lang.Error, not Exception. Errors represent serious problems that applications should not typically catch - they indicate JVM-level issues rather than application logic problems.