Re:JDK 7 Features
by fauigerzigerk on Monday September 20, 2010 @06:02PM
(#1710663)
It's not a consequence of automatic memory management. Both C# and Go have automatic memory management but their memory usage would be roughly comparable to C++ in this scenario.
There's not really any such thing as just a block of a data allocated for however many bytes the object needs dumped on the stack...like good old C structs AFAIK.
It's one of the problems of languages that don't let you do your own memory management.