So if I understand well, Garbage collection automatically deallocates objects that are not used by the program anymore. like the garbage collector in java.
I hear in languages like C that don't support garbage collection the programs can have memory leaks and subsequently exhaust the memory.
So what are the errors that programmer make in languages like C that don't support garbage collection? I would guess not deallocating objects after they're not used anymore. But are these the only errors that we can make because of the lack of a garbage collector?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…