Friday, April 26, 2019

OutOfMemoryError Exception In Java

Q- What is OutOfMemoryError Exception In Java?

Understand the OutOfMemoryError Exception

Types of OutOfMemoryError in java
  1. java.lang.OutOfMemoryError: Java heap space.
  2. java.lang.OutOfMemoryError: PermGen space.
  3. java.lang.OutOfMemoryError: GC overhead limit exceeded.
  4. java.lang.OutOfMemoryError: unable to create new native thread.
  5. java.lang.OutOfMemoryError: Requested array size exceeds VM limit.
  6. java.lang.OutOfMemoryError: requested bytes for Chunk::new. Out of swap space
  7. java.lang.OutOfMemoryError: (Native method)
Q- How to resolve OutOfMemoryError exception java?

Q- Can we handle OutOfMemoryError in Java?

No comments:

Post a Comment