About Garbage Collector
In Java, there is one system call for garbage collector.
System.gc();
I want to know the significance of this system call for GC. Even after calling this method, garbage collector won't get started, still it will run on its own time.
If this is the thing then what's the significance of this method call?
Please let me know this.
Thanking you,
Ketan
[394 byte] By [
KeDeSola] at [2007-11-26 18:52:23]

It's a hint for the system, saying "now might be a good time to run gc". It's not very useful for the average developer, although some people have managed to trigger the gc by calling that method several times in succession.I wouldn't worry about it.
Addendum
In a heavy data application, for instance, that stores records in memory for some purpose, then releases that memory and creates next set of records in memory, calling gc really help.
We have such application where in we tested its performance with and without calling gc. No wonder, we found better results by calling gc.