What is garbage collection in Java, and how can it be used ?
Answer Posted / devarathnam c,kotagudibanda(po
Hi...
GarbageCollector: Whenever an object is no longer used in
the program at that time the garbage collector reclaims the
memory of an object.It is controlled by the JVM ,The JVM
runs periadically by using "mark" and "sweep"algorithms.
Instead of "destructor" in c++ , java supports garbage
collector.
Is This Answer Correct ? | 84 Yes | 21 No |
Post New Answer View All Answers
Why method overriding is used?
How does arraylist size increase in java?
How define set in java?
what is meant wrapper classes?
What is the use of string and stringbuffer?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Can you add null to a list java?
What does the “final” keyword mean in front of a variable? A method? A class?
What is the diffrence between inner class and nested class?
Can we make a constructor final?
What are java methods?
Explain about static imports in java?
Can we extend singleton class?
How do you achieve singleton?
How to perform binary search in java?