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
Is null == null in java?
What is the use of 'super' keyword inside a constructor?
What does file separator do in java?
What are different types of multitasking?
Can private members of a base class are inheritable justify?
What is function declaration?
How do you sort in java?
what is server side caching?
What is the difference between processes and threads?
Can constructor return value?
Difference between process and thread?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
How many types of gc are there in java?
How is a variable stored in memory?
What is anti pattern in java?