| 1. |
What Is Outofmemoryerror In Java? How Do You Deal With That? |
|
Answer» The Java virtual machine THROWS java.lang.OutOfMemoryError when there is not enough memory to RUN the application e.g. no more memory to create new objects, no more memory to create new THREADS etc. The most common OutOfMemoryError is the java.lang.OutOfMemoryError: java heap space, which COMES when there is no more memory left to create a new OBJECT. The Java virtual machine throws java.lang.OutOfMemoryError when there is not enough memory to run the application e.g. no more memory to create new objects, no more memory to create new threads etc. The most common OutOfMemoryError is the java.lang.OutOfMemoryError: java heap space, which comes when there is no more memory left to create a new object. |
|