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
Difference between comparator and comparable in java?
What about interthread communication and how it takes place in java?
What are mutable classes?
What do you mean by exception handling in Java?
What is collections framework?
Mention some interfaces implemented by linked list in java.
What is the this keyword?
What is data movement?
why not override thread to make a runnable? : Java thread
How many types of assembly languages are there?
What is array list in java?
Explain polymorphism citing an example.
What is exception hierarchy in java?
What is meant by data hiding/encapsulation?
What is __ init __ functions?