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
What is a return in java?
What does I ++ mean?
Why is stringbuffer faster than string?
Explain the importance of finally block in java?
Can an interface extend a class?
What is difference between path and classpath?
Can we override private method in java?
What is the difference between variable & constant?
What is meant by attribute?
What is final class?
Explain illegalmonitorstateexception and when it will be thrown?
What do you mean by constructor?
What is a memory leak in java?
Are arrays static in java?
How can a gui component handle its own events?