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
Why are lists ordered in java?
What is a programming object?
What do you mean by an object in java?
What are java threads?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is difference between an object and a class?
How do you check whether the list is empty or not in java?
What is the collections api?
What is static block?
Which containers use a flowlayout as their default layout in java programming?
Why arraylist is used in java?
What is a nested list?
Which graphs are functions?
What is public static void main?
What do you understand by the term string pool?