+ 20
Is it possible to have memory leaks in languages that has Garbage Collector?
When I develop C programs, sometimes "memory management" get so much energy from me that I lose concentration from the main problem. Do I still have to worry about memory management in languages with Garbage Collector? Is it possible to have memory leaks in them?
4 Respuestas
+ 5
you don‘t really have to worry about memory management most of the time(of course there are always some rare exceptions) but you could get a memory leak if the garbage collector is buggy
also look at this thread: https://stackoverflow.com/questions/10577534/can-you-have-memory-leaks-with-a-garbage-collector
+ 2
Small ones, nothing serious.
I suggest you to try C++, it does just some of the garbage collection for you, but without runtime overhead.
+ 2
No
+ 1
Circular references can be a problem even with garbage collected languages, but generally with GC you don't have to worry about memory management.