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.