Multiple choice technology platforms and products

What is StackOverflowError and OutOfMemoryError?

  1. UncheckedException

  2. CheckedException

  3. Error

  4. UnspecifiedException

Reveal answer Fill a bubble to check yourself
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.