-
Expert Member
Running garbage values before compling
Can we run garbage values before compling a program? When the memory needed to excute a particular program is not sufficient then can we make it up to run properly by excuting garbage value before the program compiles? What is the command used if at all?
NOTE : [This question was asked by neetha]
-
Junior Member
Re: Running garbage values before compling
Hi
for running garbage collector
system.gc(); method is there.
regards,
vardhan.
-
Junior Member
Re: Running garbage values before compling
System.gc() helps the programmer suggest that the collecter run. The compiler may run it or may not.
Basically java specifications do not require the collecter to run on System.gc(). You cannot force garbage collecter to run, only recommend it run.
So if your app is very memory intensive, I would suggest not to depend on grabge collecter. Unfortunately, without knowing more about your specific settings I can't suggest any alternative either. Can you specify more details about your problem
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules