What is the purpose of the System class?


The purpose of the System class is to provide access to system resources such as standard input and output. It cannot be instantiated. Facilities provided by System class are given below.

  • Standard input

  • Error output streams

  • Standard output

  • utility method to copy the portion of an array

  • utilities to load files and libraries

    There are the three fields of Java System class, i.e., static printstream err, static inputstream in, and standard output stream.

0 answers