Is there a destructor for Java? I don\'t seem to be able to find any documentation on this. If there isn\'t, how can I achieve the same effect?
To make my question m
No, java.lang.Object#finalize is the closest you can get.
However, when (and if) it is called, is not guaranteed. See: java.lang.Runtime#runFinalizersOnExit(boolean)