Java OCA OCP Practice Question 1189

Question

How do you change the value that is encapsulated by a wrapper class after you have instantiated it?

  • A. Use the setXXX() method defined for the wrapper class.
  • B. Use the parseXXX() method defined for the wrapper class.
  • C. Use the equals() method defined for the wrapper class.
  • D. None of the above.


D.

Note

The value encapsulated by a wrapper class is immutable.




PreviousNext

Related