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

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

1 runtime.gc();
2 runtime.gc();
3 rt.gc();
4 Runtime.getRuntime().gc();
5 rt.gc();
6 runtime.gc();
7 Runtime.getRuntime().gc();
8 for( int i=0; i<5; i++ ) rt.gc();
9 runtime.gc();
10 Runtime.getRuntime().gc();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.