Java OCA OCP Practice Question 2044

Question

How can one access the standard error stream?.

Select the one correct answer.

  • (a) It is accessed via a member of the System.err class.
  • (b) It is accessed via the static variable named out in the System class.
  • (c) It is accessed via the static variable named err in the System class.
  • (d) It is accessed via the static variable named err in the Runtime class.
  • (e) It is returned by a method in the System class.


(c)

Note

The standard error stream is accessed via the static variable named err in the System class.




PreviousNext

Related