Posts

Showing posts with the label programming

working of garbage collector in java.....!!

Well in this post i will give u brief introduction and working of garbage collector....!! Garbage collector:- in java garbage means derefrenced or unrefrenced object.it is the process to reclaim the unused memory automatically.In words it is the way to destroy unused objects. To do so we are using free( )in c and delete( ) in cpp. But in java it is provided automatically so it gives a better concept to destroy unused or derefrenced object to be destroyed automatically. Advantages of garbage collector:-  It makes memory efficient as it destroys the members which are consumed in the object and unused which and are stored in heap is done by the JVM(it is the part of jvm) which makes it run at several time intervals. Now generally how could the object get derefrenced .....!!! Generally the basic concept behind the derefrenced object is that the object gets derefrenced when it's scope gets over generally when the program ends its scope would get over definate...