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 better - 'bit-shift a value' or 'multiply by 2'?
Does string isempty check for null?
Can you call one constructor from another if a class has multiple constructors?
What does regex mean?
What is the order of arraylist in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
How to do a true java ping from windows?
Describe how to implement singleton design pattern in struts.
What is namespace in java?
What are the types of sockets in java?
What is a control variable example?
What is the implementation of destroy method in java. Is it native or java code?
What is the relationship between class and object?
What is blank final variable?