Java OCA OCP Practice Question 1167

Question

Which of the following statements are true?

(Select all that apply.)

  • A. A final object's data cannot be changed.
  • B. A final class can be subclassed.
  • C. A final method cannot be overloaded.
  • D. A final object cannot be reassigned a new address in memory.
  • E. None of the above.


D.

Note

An object denoted as final can have its data changed.

However, the address location is what is determined as unchangeable.

C is false because a final method means it cannot be overridden.

B is false because a final class means it cannot be subclassed.




PreviousNext

Related