Posted By

rnavanee on 08/17/13


Tagged

java jvm


Versions (?)

Java OutOfMemory Example


 / Published in: Java
 

URL: http://www.javacodegeeks.com/2013/08/understanding-the-outofmemoryerror.html

This java code, when executed, throws OOM error.

Java Console: ... Exception in thread "main" java.lang.OutOfMemoryError ...

Heapdump Data: ... 1STHEAPFREE Bytes of Heap Space Free: 0 1STHEAPALLOC Bytes of Heap Space Allocated: 66666600 ...

Report this snippet  

You need to login to post a comment.