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 a instance variable in java?
Can we define constructor in inner class?
Is string a datatype?
How you can force the garbage collection?
Why is java called java?
What is data type example?
What is the difference between arraylist and hashset in java?
What is native code?
What is java used for on a computer?
What is the final keyword?
What is casting in java programming?
What are "class access modifiers" in Java?
What is a substring of a string?
What is final?
What is difference between string and stringbuffer?