java - What is purpose of System class? -


i looked through code , saw system in lot of places

system.out.println(); system.exit(); 

etc.

is main purpose of class provide system resources? system resources mean java-related resources here?

the java.lang.system class contains several useful utilities used operation. system class cannot instantiated.

facilities provided system:

  • standard output

  • error output streams

  • standard input , access externally defined properties , environment variables.

  • a utility copying particular portion of array.

  • used loading files , libraries.

standard fields of system class are:

  • static printstream err -- "standard" error output stream.

  • static inputstream in -- "standard" input stream.

  • static printstream out -- "standard" output stream.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -