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
Where are global variables stored?
What is variable and constant explain with example?
What is the difference between object oriented programming language and object based programming language?
Can we have multiple classes in single file ?
What do you mean by exception handling in Java?
What is final variable?
What are the main differences between notify and notifyAll in Java?
What are different types of references?
How do you check if an arraylist is not empty?
What is java reflection?
What is the current version of java?
What are the main uses of java?
What are synchronized methods ?
What are the various access specifiers for java classes?
What is the requirement of thread in java?