Question OOP-CTOR-0026
EasyDoes Java have destructors like C++?
- A.
No; the garbage collector frees unused objects automatically
- B.
Yes, written with ~
- C.
Only for static classes
- D.
Yes, called finalise() and run immediately
Sign up free to see the answer and a step-by-step explanation.