Which operator is used for the destructor in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which operator is used for the destructor in Java?

this was a question in one of the Java challenges, is it a valid question?

2nd May 2017, 9:31 AM
Ali Abd El Salam
Ali Abd El Salam - avatar
2 Answers
+ 1
You can define a method close() and call to the method finalize() in It. This is not mandatory. There is not a destructor operator
2nd May 2017, 11:30 AM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
2nd May 2017, 9:35 AM
Vishal Prajapati