The System Class

The System class is one of the most important and useful classes that java.lang provides. It provides a standard interface to common system resources and functions. It implements the standard input, output, and error streams, and supplies a set of methods that provide control over the Java runtime system. Some of these methods duplicate those provided by the Runtime class.

Standard Streams

The in, out, and err variables are, by default, assigned to the standard input, output, and error streams, which are used to support console I/O. The setIn(),setOut(),and setErr()methods can be used to reassign these variables to other streams.

Properties-Related Methods

The System class provides several properties-related methods. Properties ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.