System Class

What is the use of system class?

Questions by nikhil.petkar

Showing Answers 1 - 9 of 9 Answers

zero10

  • Jan 26th, 2010
 

Well it depends upon you for what purpose do use system class.
Say, System.in >> belongs to inputstream interface helps in inputting from the console.
whereas, System.out and System.err is used to print something on the console. when out is used with System class then you generally call print() and println() methods to print the stuff you want to. whereas when you use err with System class then you generally try to print error message.

Cheers!

Thomas John

  • Sep 22nd, 2015
 

The purpose of the System class is to provide access to system resources. It contains accessibility to standard input, standard output, error output streams, current time in milliseconds, terminating the application, etc.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions