Garbage collector in java tccicomputercoaching com

Page 1

Garbage Collector In JavaTccicomputercoaching.Com In java, garbage means unreferenced objects.

Garbage Collection is process of

regaining the runtime unused memory

automatically. In other simple words, to free the memory when it’s not in use. Syntax of garbage collection is as following: Public static void GC () {} The GC () method is used to invoke the garbage collector to perform clean-up processing. The GC () is found in System and Runtime classes. It allows developers to create new objects without worrying explicitly about memory allocation and deal location, because the garbage collector automatically reclaims memory for reuse. This enables faster development with less boilerplate code, while eliminating memory leaks and other memory-related problems. To learn more visit us @ tccicomputercoaching.com Contact us @ 98256 18292 To Learn More TCCI, TCCI-Tririd Computer Coaching Institute, Java programming course at Ahmedabad, programming courses at Ahmedabad, Best computer classes at Ahmedabad


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.