What causes Out of Memory exception?

Answer Posted / rajshree

during program execution objects are created in the
heap,after using those obejcts jvm should release those
momory space by garbage collection.but if in garbage
collection will not run on those object tha total heap will
be ocupied with those dead objects.
next time when JVM will try to allocate tyhe heap to an
object it wont be able to do so...that time it throws
outOfMemoryException.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the enumerator of the java collection framework? : java collections

561


my interviewer asked me what technical specification you used how to answer that question

1933


what is mean by hasing and maping in java platform and advantage?

1827


What are the differences between the java collection and the java list? : java collections

606


What are the interfaces in java collections? : java collections

611






What are the queues in the java collection framework? : java collections

546


What is an algorithm in java collection framework? : java collections

575


Which interface does java.util.hashtable implement?

667


please mail me the interview question based on java/j2ee

1530


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2534


What is the use of hashcode in java ?

573


What are the main classes of the list interfaces? : java collections

574


What are the types of interface used in the java collections? : java collections

586


What is java collection? : java collections

577


can u draw class/object diagram for ATM

5527