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 super constructor?
What are the advantages of java over cpp?
Can singleton class be serialized?
What is floor math?
What is :: operator in java 8?
What is a consumer in java?
What is the point of polymorphism java?
What is java autoboxing?
Can you explain the cs option of java interpreter?
Write a program to solve producer consumer problem in java?
What is immutable class in java?
what is static import in java? Explain
Explain the difference between jvm and jre?
Can you achieve runtime polymorphism by data members?
How do you write a conditional statement?