asked 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

asked
User Zelusp
by
8.3k 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.

answered
User Oula Alshiekh
by
8.8k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.