A very important difference
between
C and
Java
- Very important difference
between Java
and C:
- Java has a
built-in
garbage collection
mechanism
- C
(and most other
programming languages)
does not !!!
|
- Consequence:
- A C program
(i.e.: you !!!)
must
de-allocate
(= un-reserve) variables
that have become
garbage !!!
|
- Important fact:
- Missing
memory de-allocation
is a very difficult
bug to
track down
- This bug will
only
manifest itself when
a program
runs
a long time
(and accummulate
too much garbage)
|
|