What is garbage collection in Java, and how can it be used ?

Answer Posted / dhawal

garbage collection is process run thruogh out the java
programe ,when we class creation takes place after that we
have to instantiate that class ,if we can not gives refrence
to this object then that will be find out by garbage
collector and that will collect by garbage collector.

Is This Answer Correct ?    11 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which package has light weight components?

572


What are triggers in DB? Explain their types. How do they work?

632


Explain notifyall() method of object class ?

672


What does += mean in java?

586


Can list be final in java?

491






What is thread synchronization in java?

485


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

662


How to create an interface?

629


What is thread count in java?

553


List some java keywords sun like c, c + + keywords?

594


Does java set allow duplicates?

538


Is ruby built on java?

537


What is the requirement of thread in java?

633


What is intern method in java?

591


What does the @override annotation do?

567