Answer Posted / prabir kumar
1) it is a automatic memory management utility run by JVM.
2) the JVM cleaning the objects from the memory which are
no longer being referenced.
3) the object that is not instantiate or containl null is
also applicable for garbage collection.
3) explicitly running garbage collector is very expensive.
4) to run the garbage collect call the static method of
System class e.g. System.gc();
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the statements?
What is a for loop in java?
When is an object subject to garbage collection?
What are register variables what are the advantages?
What data type is a string?
What do you mean by default constructor in java?
What is numeric data type?
What is java used for?
How do you declare a variable?
Is string pool garbage collected?
can used Protected Class outside Function.?
What is the this keyword?
Is a method a function?
How do you do math powers in java?
What type of variable is error flag?