0
Java unfortunately does not have destructors, like in C++ which are executed when an object is about to get cleaned off the memory. Finalise is kind of a work around though Java doesn’t guarantee that the finalise method will ever be called because the object might never be garbage collected.
26th Mar 2018, 6:14 PM
TurtleShell
TurtleShell - avatar