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 to retrieve data from database in java using arraylist?
how to deploy tomcatserver to weblogic server? write d following steps?
Explain wait(), notify() and notifyall() methods of object class ?
What is fail first in java?
What is the difference between comparison done by equals method and == operator?
What restrictions are placed on method overloading?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What do you mean by static variable?
what is bmg file and how to create that files?what will it contailn?
Why deletion in linkedlist is fast than arraylist?
Can anonymous class have constructor?
What is meant by flickering?
What is memory leak and how does java handle it?
when you will synchronize a piece of your code? : Java thread
Can a constructor be protected?