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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

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