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
Post a Comment