 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
Another
difference with Java is that
|
|
|
|
– |
You
never need to destroy an object!!!!!!!
|
|
|
|
– |
Java
simplifies the need to manage the lifetime of our
|
|
|
|
objects
and manages the cleanup work implicitly!
|
|
|
|
– |
When
you create an object using new, it actually
|
|
|
|
exists
past the end of the block in which it was defined
|
|
|
(although
the reference to it ends)
|
|
|
|
– |
This
is because Java has a garbage collector
|
|