What causes Out of Memory exception?

Answers were Sorted based on User's Feedback



What causes Out of Memory exception?..

Answer / sitaram

When ever Heap size is full at that time out of memory
exception. To avoid the this exception, we can increase the
Heap size.

Is This Answer Correct ?    8 Yes 1 No

What causes Out of Memory exception?..

Answer / 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

What causes Out of Memory exception?..

Answer / good choice

OutOfMemory Exception occure when the heap size is full of
the objects created by JVM during the programmer execution.

Is This Answer Correct ?    2 Yes 0 No

What causes Out of Memory exception?..

Answer / aashish r. wadhokar

It happens when server memory is not released which is used
by objects declared.
Again it happens when EntityManager comes into picture.
till we do not close EntityManager transaction.

Is This Answer Correct ?    2 Yes 4 No

What causes Out of Memory exception?..

Answer / kamruddin

exception is an event and error that raised to the program
and break the flow of statement.

Uncheacked exception :- airthmetic error

chacked exception:- run time error

unchecked exception :-

1- airthmetic exception.
2- array index of bound exception.
3- array stored in exception
4- class cost exception
5- illegal argument exception
6- null pointer exception
7- negative null size of array exception
8- array found exception.

checked exception:-

1- class not found exception.
2- illegle accesss exception
3- instantation exception.
4- intrupted exception
5- no such method exception
6- no such field exception

Is This Answer Correct ?    1 Yes 18 No

Post New Answer

More Java J2EE AllOther Interview Questions

What is the Spring2.5 MVC Navigation flow?

1 Answers   IBM,


What is java collection? : java collections

0 Answers  


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

0 Answers  


Explain JSP life cycle?

2 Answers   Accenture,


How do you create UserTransaction Object? How do you rollback a transaction in a method?

1 Answers   HCL,






Difference b/w >> and >>> ?

1 Answers   Adobe, Infosys,


which book is the best for preparing for SCWCD 1.5

4 Answers   Google,


I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is that the xyz.jsp page has its submit button.When i click on that button the whole main page get refreshed.But i want to refresh only the xyz.jsp page.How could i achive it so that i can only refresh the xyz.jsp not the main page page?

4 Answers  


What are the different types of classes implemented in the set interfaces? : java collections

0 Answers  


VSS Objectives

1 Answers  


What are the considerations to be made in case of loops in java ?

0 Answers  


what is the IDE that you have used to write your java programs?

2 Answers   Inforica, Interface Software,


Categories