> In this particular version of aliasing, using pointers, you can
> you can have a name that outlives the storage allocation for the
> variable. This is a problem. It's a common cause, in C, of
> hard-to-trace weird behavior and "segmentation fault - core dumped"
For Java, this is theoretically not quite true. There is no explicit
deallocation. If it works like it's supposed to, the item remains
allocated until the garbage collector determines that there are no
(But I still like Ada better.)