Sunday, May 8, 2016

Garbage Collector In Java-Tccicomputercoaching.Com



Garbage Collector In Java-Tccicomputercoaching.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

No comments:

Post a Comment