223k views
0 votes
If a class has a method named finalize, it is called automatically just before a data member that has been identified as final of the class is destroyed by the garbage collector. A. True B. False

User Zelusp
by
5.1k points

1 Answer

6 votes

Answer:

False

Step-by-step explanation:

If a class has a method called finalize, the class has a situation involving the existence of that method, providing that the method is only called automatically in that situation. For this reason, we cannot guarantee that the method will be called automatically immediately before a data member identified as the end of the class is destroyed by the garbage collector.

User Oula Alshiekh
by
5.4k points