Memory management in JAVA

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


Please Help Members By Posting Answers For Below Questions

Is null == null in java?

645


What is the use of 'super' keyword inside a constructor?

556


What does file separator do in java?

532


What are different types of multitasking?

538


Can private members of a base class are inheritable justify?

482






What is function declaration?

521


How do you sort in java?

590


what is server side caching?

1602


What is the difference between processes and threads?

531


Can constructor return value?

507


Difference between process and thread?

597


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2366


How many types of gc are there in java?

555


How is a variable stored in memory?

523


What is anti pattern in java?

512