Results 1 to 3 of 3

Thread: Running garbage values before compling

  1. #1
    Expert Member
    Join Date
    Oct 2006
    Answers
    209

    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]


  2. #2
    Junior Member
    Join Date
    Feb 2007
    Answers
    10

    Re: Running garbage values before compling

    Hi
    for running garbage collector
    system.gc(); method is there.

    regards,
    vardhan.


  3. #3
    Junior Member
    Join Date
    Feb 2007
    Answers
    23

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact