Java OCA OCP Practice Question 188

Question

What is true of the finalize() method?

  • A. It may be called zero or one times.
  • B. It may be called zero or more times.
  • C. It will be called exactly once.
  • D. It may be called one or more times.


A.

Note

The finalize() method may not be called, such as if your program crashes.

However, it is guaranteed to be called no more than once.




PreviousNext

Related