Java OutOfMemory Example

/ Published in: Java
Save to your folder(s)

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


RSS Icon Subscribe to comments

You need to login to post a comment.