Answers for "why there is no destructor in java"

2

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.
Posted by: Guest on October-27-2020

Code answers related to "why there is no destructor in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language