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
Can singleton class be cloned?
Is there any tag in htm to upload and download files?
What does indexof mean?
What is string :: npos?
Can a constructor be made final?
What is a singleton factory?
Write a program to reverse a number in java?
Give an example of call be reference significance.
What is a two-pass assembler?
Is a boolean 1 bit?
What is thread safe singleton?
What is the point of java?
Difference between string, stringbuffer and stringbuilder?
Can set contain duplicates?
What is the implementation of destroy method in java. Is it native or java code?