Java OCA OCP Practice Question 2042

Question

Which of these integer types do not have their own print() method in the PrintWriter class?

Select the one correct answer.

  • (a) byte
  • (b) char
  • (c) int
  • (d) long
  • (e) All have their own print() method.


(a)

Note

The byte type does not have its own print() method in the PrintWriter class.

There is no natural text representation of a byte.




PreviousNext

Related