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
Is empty string in java?
What do you mean by ordered and sorted in collections in java?
What do you understand by the bean persistent property?
How to find the largest value from the given array.
Which collection is thread safe in java?
Why webdriver is an interface?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What are the different access modifiers available in java?
Why object class is super class for every class in java?
Is java call by reference?
What is a subsequence of a string?
Can a class be a super class and a sub-class at the same time? Give example.
What is heterogeneous in java?
List out benefits of object oriented programming language?
What is java util collection?