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
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
How do you check if a character in a string is a digit or letter?
Can this keyword be used to refer static members?
For class CFoo { }; what default methods will the compiler generate for you>?
What is a classloader in java?
What is methods in java?
Can we create object of inner class in java?
Can we have 2 main methods in java class?
What is the use of arraylist in java?
What is string data type?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What are wrapper classes in java?
Can static methods access instance variables in java?
What is difference between fileinputstream and filereader in java?
What is append function?