99 fact
0
Q:

why are there no destructors in java?

Because Java is a garbage collected language you cannot predict when (or even if) an object will be destroyed. Hence there is no direct equivalent of a destructor.
0

New to Communities?

Join the community