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 an off by one error in java?
Explain parallel processing in java8?
Explain about the security aspect of java?
What is are packages?
Can inner class final?
What is tree in java?
why java does not support unsigned keyword?
Difference between a process and a program?
Explain about transient variables in java?
How do you create an array in java?
What is keyset in java?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What is meant by inheritance and what are its advantages?
What causes memory leak in java?
Explain java coding standards for interfaces?