What causes Out of Memory exception?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
httt method
What is the use of hashcode in java ?
"Sun Certified Java Programmer" This is one String , we need to print SCJP, write the java code dynamically? pls reply this questions
Which of the following declaration is wrong? int i=45; float j = 45.0; double k=45.0;
who should use JNDI?
what are advantages of HQL? what are advantages of Native SQL? what are advantages of Criteria API?
What are maps interfaces in the java collections? : java collections
What is the use of the list interface in the java collection? : java collections
can u draw class/object diagram for ATM
0 Answers HCL, Zycus Infotech,
What are the considerations to be made in case of loops in java ?
please mail me the interview question based on java/j2ee
how to deploy the web application ?