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

Answer Posted / sandeep chaudhary

garbage collection is just a thread that is used for
deallocation of object.object in java are allocated in
heap area(memory ) ,particular object is not used for long
period then automatically garbage coolection calls this
object for destroyed.........

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I enable java in safari?

549


What happens when a thread cannot acquire a lock on an object in java programming?

552


Can we sort array in java?

531


Can an interface have a constructor?

516


Does hashset allow duplicates in java?

582






What is the difference between access specifiers and access modifiers in java?

577


Do we have pointers in java?

533


What is the difference between JDBC 1.0 and JDBC 2.0?

2715


What about static nested classes in java?

592


What is the purpose of java?

558


What are extraneous variables examples?

531


What is the epoch date?

571


What is difference overloading and overriding?

579


What are the advantages of compiled language?

577


Tell me about different OOPS concepts.

593