Wednesday 5 June 2019

Java Memory Management


In Java, we can create any number of objects when required and Java Garbage Collector remove these objects, when the objects are out of scope.

Different Approaches of Garbage Collection


Note
One drawback of Garbage collection is, programs written in Garbage collected languages runs slower than the programs written in non-garbage collected languages. Since Garbage collection won't come free, it runs in background, to find out unreachable objects. It consumes your system resources. But with the newer techniques evolved by Java (like JIT compilation) reduce this performance burden.

Previous                                                 Next                                                 Home

No comments:

Post a Comment