What is garbage collection in Java, and how can it be used ?
Answer Posted / ravi
when there are no refrences to an object,means that it is
not in use anymore.so the JVM marks it for garbage
collection ,which is basically a process of taking back the
resources from the object which was given to it earlier.
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is the main method java?
Explain yield() method in thread class ?
What is a Presistent Object?
When should I use singleton pattern?
What are operators and its types?
What is collection class in java? List down its methods and interfaces.
Is java good for beginners?
How can a gui component handle its own events?
What is an association?
Which api is provided by java for operations on set of objects?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is a boolean expression in java?
Write a program in java to create a doubly linked list containing n nodes.
Can we extend a class with private constructor?
What is the use of arrays tostring () in java?