How to send a request to garbage collector?

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


Please Help Members By Posting Answers For Below Questions

What is an off by one error in java?

504


Explain parallel processing in java8?

637


Explain about the security aspect of java?

576


What is are packages?

590


Can inner class final?

637






What is tree in java?

491


why java does not support unsigned keyword?

4264


Difference between a process and a program?

619


Explain about transient variables in java?

649


How do you create an array in java?

536


What is keyset in java?

658


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

553


What is meant by inheritance and what are its advantages?

583


What causes memory leak in java?

484


Explain java coding standards for interfaces?

635