Java OCA OCP Practice Question 2089

Question

Which of the following method(s) from Object class can be overridden? (select all that apply.)

  • A. finalize() method
  • B. clone() method
  • C. getClass() method
  • D. notify() method
  • E. E.wait() method


A.

Note

The methods finalize() and clone() can be overridden.

The methods getClass(), notify(), and wait() are final methods and so cannot be overridden.




PreviousNext

Related