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
How do you bind variables?
What is meant by object?
Why is core java important?
What is thread safe in java?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What are data structures in java?
Is null function in java?
Explain java heap space and garbage collection?
What is a blocking method in Java?
Does a class inherit the constructors of its superclass in java programming?
What is final method in java?
What is difference between float and double?
What is the concatenation operator in java?
Can we inherit a class with private constructor?
Can a constructor be made final?