What is garbage collection in Java, and how can it be used ?
Answer Posted / janet
When an object is no longer referred to by any
variable,java automatically reclaims memory used by that
object.This is known as garbage collection.
System.gc() method may be used to call it explicitly.
Is This Answer Correct ? | 182 Yes | 34 No |
Post New Answer View All Answers
Is array an object in java?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
Which is better ascii or unicode?
What are class members by default?
What is the size of int in 64-bit jvm?
Is a case study a method or methodology?
Who developed java?
Which is easier .net or java?
What is a string token?
why would you use a synchronized block vs. Synchronized method? : Java thread
Can you override private or static method in java?
What is classname class in java?
Can inner class final?
What is bitwise complement?
Where is the find and replace?