- on a managed heap, dynamic allocations can be done much faster
- shared ownership can be handled with negligible amortized cost, where in a native language you'd have to use reference counting which is awfully expensive
- in some cases, object destruction is vastly simplified as well (finalizers only have to run in a few cases, where inMost Java objects can be reclaimed just by GC'ing the memory block. In C++ destructors must always be executed, and nearly every object has one)
                
                    Stack Overflow is garbage 
                
                
- 249.4k
- 53
- 355
- 558
                
                    Stack Overflow is garbage 
                
                
- 249.4k
- 53
- 355
- 558
                
                    Stack Overflow is garbage 
                
                
- 249.4k
- 53
- 355
- 558