Java OCA OCP Practice Question 1037

Question

Which of the following are true?

  • A. Local variables may be declared final.
  • B. Methods may be declared final.
  • C. Constructors may not be declared private.
  • D. transient variables may not be serialized.


A, B, and D.

Note

Constructors may be declared as final.




PreviousNext

Related