Java java.lang System fields, constructors, methods, implement or subclass

Example usage for Java java.lang System fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang System.

The text is from its open source code.

Field

InputStreamin
The "standard" input stream.
PrintStreamout
The "standard" output stream.
PrintStreamerr
The "standard" error output stream.
StringlineSeparator

Constructor

System()
Don't let anyone instantiate this class

Method

voidarraycopy(Object src, int srcPos, Object dest, int destPos, int length)
Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array.
StringclearProperty(String key)
Removes the system property indicated by the specified key.
Consoleconsole()
Returns the unique java.io.Console Console object associated with the current Java virtual machine, if any.
longcurrentTimeMillis()
Returns the current time in milliseconds.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
voidexit(int status)
Terminates the currently running Java Virtual Machine.
voidgc()
Runs the garbage collector in the Java Virtual Machine.
java.util.Mapgetenv()
Returns an unmodifiable string map view of the current system environment.
Stringgetenv(String name)
Gets the value of the specified environment variable.
PropertiesgetProperties()
Determines the current system properties.
StringgetProperty(String key)
Gets the system property indicated by the specified key.
StringgetProperty(String key, String def)
Gets the system property indicated by the specified key.
SecurityManagergetSecurityManager()
Gets the system-wide security manager.
intidentityHashCode(Object x)
Returns the same hash code for the given object as would be returned by the default method hashCode(), whether or not the given object's class overrides hashCode().
ChannelinheritedChannel()
Returns the channel inherited from the entity that created this Java virtual machine.
voidload(String filename)
Loads the native library specified by the filename argument.
voidloadLibrary(String libname)
Loads the native library specified by the libname argument.
StringmapLibraryName(String libname)
Maps a library name into a platform-specific string representing a native library.
longnanoTime()
Returns the current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds.
voidrunFinalization()
Runs the finalization methods of any objects pending finalization.
voidsetErr(PrintStream err)
Reassigns the "standard" error output stream.
voidsetIn(InputStream in)
Reassigns the "standard" input stream.
voidsetOut(PrintStream out)
Reassigns the "standard" output stream.
voidsetProperties(Properties props)
Sets the system properties to the Properties argument.
StringsetProperty(String key, String value)
Sets the system property indicated by the specified key.
voidsetSecurityManager(SecurityManager sm)
Sets the system-wide security manager.