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
I want to persist data of objects for later use. What’s the best approach to do so?
What is the basic concepts of OOPS?
What is a text string?
What are heap memory and stack memory and what are memory tables.
What is the use of set in java?
Which is better ascii or unicode?
what is synchronization and why is it important? : Java thread
Does java have a compiler?
What is the difference between char and char *?
Can a class be private in java?
How do you ensure that n threads can access n resources without deadlock?
What are the advantages of java over cpp?
What is native code?
What is singleton class in java and how can we make a class singleton?
Can you explain the private protected field modifier?