Delete in C++ and garbage collection in Java -


does delete in c++ work same way garbage collection in java? mean, memory management part internally (what happens in heap in both cases?).

in c++, functionality of delete, delete[], , new operators can defined through operator overloading, can make work want.

in java's heap behavior defined jvm, , in general, long no references object exist in memory, cleared out garbage collector eventually. see this more details on java's garbage collection.


Comments

Popular posts from this blog

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -