Answer Posted / uv
As far as I know,it is not required to call the garbage
collector.
It automatically and periodically removes the unused
objects by an algorithm known as "Mark and Sweep".
However, if we intentionally want to call it then the above
suggestions are perfect.
Anyone who feels that it is incorrect, please feel free to
correct me.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the protected method modifier?
What about member inner classes?
What is the default size of arraylist in java?
Can we execute a program without main?
In java, how many ways you can take input from the console?
If try block is successfully executed, Then Is Finally block executed?
Describe how to implement singleton design pattern in struts.
What is the default value of float and double datatype in java?
What about instanceof operator in java?
How to display names of all components in a Container?
What is the set interface in java programming?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What are aggregate functions explain with examples?
Is there any difference between nested classes and inner classes?
Difference between ‘>>’ and ‘>>>’ operators in java?