Explain When Java Application can run out of memory ?

Questions by janpachno

Showing Answers 1 - 0 of 0 Answers

Yes, Java applications can run out of memory, like when images or image buffers are not getting garbage collected or when dispose() method is not used.

We all know Java automatically garbage collects unused objects. But you must remember that an object is considered as unused only when the object no longer referenced. That means a referenced class continues to exist and to take up memory space even if it is not used.

  Was this answer useful?  Yes

sampra

  • Mar 6th, 2012
 

We all know Java automatically garbage collects unused objects. But you must remember that an object is considered as unused only when the object no longer referenced. That means a referenced class continues to exist and to take up memory space even if it is not used.

  Was this answer useful?  Yes

Anon

  • Apr 12th, 2012
 

if you have an infinite loop that keeps on doing things that take up memory (like creating objects).

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions