Java OCA OCP Practice Question 465

Question

Which of the following are true?

Choose all that apply.

  • A. System.out has a println() method.
  • B. System.out has a format() method.
  • C. System.err has a println() method.
  • D. System.err has a format () method.


A, B, C, D.

Note

Both System.out and System.err are instances of PrintStream, which has a println() method and (as of version 5.0) a format() method.




PreviousNext

Related