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
How do I enable java in safari?
What happens when a thread cannot acquire a lock on an object in java programming?
Can we sort array in java?
Can an interface have a constructor?
Does hashset allow duplicates in java?
What is the difference between access specifiers and access modifiers in java?
Do we have pointers in java?
What is the difference between JDBC 1.0 and JDBC 2.0?
What about static nested classes in java?
What is the purpose of java?
What are extraneous variables examples?
What is the epoch date?
What is difference overloading and overriding?
What are the advantages of compiled language?
Tell me about different OOPS concepts.