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
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
What are the types of java collections? : java collections
What are the main classes of the list interfaces? : java collections
Should we create system software ( e.g operating system ) in java ?
What is the enumerator of the java collection framework? : java collections
What are the classes in the java collection framework? : java collections
Which interface does java.util.hashtable implement?
Which sorting algorithm is used by collections.sort() in java ?
What are the differences between the java collection and the java list? : java collections
What are the considerations to be made in case of loops in java ?
What are the different types of classes implemented in the set interfaces? : java collections
What are the interfaces in java collections? : java collections
What is deque in the java collections framework? : java collections
please mail me the interview question based on java/j2ee
What are the queues in the java collection framework? : java collections