Java OCA OCP Practice Question 245

Question

Which two primitives have wrapper classes that are not merely the name of the primitive with an uppercase letter?

  • A. byte and char
  • B. byte and int
  • C. char and int
  • D. None of the above


C.

Note

The wrapper class for int is Integer and the wrapper class for char is Character.

All other primitives have the same name.

For example, the wrapper class for boolean is Boolean.




PreviousNext

Related