Method gc()
Return type: void
Member of: java.lang.System
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 System.gc();
2 System.gc();
3 System.gc ();
4 System.gc();
5 System.gc();
6 System.gc(); //runs the garbage collector
7 System.gc(); //runs the garbage collector
8 System.gc();
9 System.gc();
10 System.gc();
11 System.gc();
12 System.gc();
13 System.gc();
14 System.gc();
15 System.gc();
16 System.gc();
17 System.gc(); /* asyncronous garbage collector might already run */
18 System.gc();
19 System.gc();
20 System.gc();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.