The code does have a try/catch which prints the stack trace of all exceptions. But for the OoM one is just print that one line error (as in above post).
In my way of understanding things if the JVM runs out of memory it just "quits". It can't even cope with doing a print.
The code does have a try/catch which prints the stack trace of all exceptions. But for the OoM one is just print that one line error (as in above post).
In my way of understanding things if the JVM runs out of memory it just "quits". It can't even cope with doing a print.