Answer Posted / srikanth
garbage collector ie gc is responsible for Memory
management in JAVA
whenever heap memory is full jvm makes list of objeects
which is unrefered and it calls finalize()method on that
method to cleanup resourse which is hold by it and finaaly
gc()method is invoked finally to relese the resource
Is This Answer Correct ? | 29 Yes | 1 No |
Post New Answer View All Answers
When is finally block not called?
What are methods and how are they defined?
What are static blocks and static initalizers in java ?
Why generics are used in java?
How to sort an array from smallest to largest java?
How do weakhashmap works?
What are benefits of java?
Does java support Operator Overloading?
What is the difference between a checked and an unchecked exception?
Can we make constructors static?
What do the thread?class methods run() and start() do?
Write a java program to generate fibonacci series ?
What is the difference between method and means?
How to perform merge sort in java?
Can we override constructor in java?