public final class System extends Object
| Modifier and Type | Field and Description |
|---|---|
static PrintStream |
err
The "standard" error output stream.
|
static PrintStream |
out
The "standard" output stream.
|
| Constructor and Description |
|---|
System() |
| Modifier and Type | Method and Description |
|---|---|
static void |
arraycopy(Object src,
int srcOffset,
Object dst,
int dstOffset,
int length)
Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array.
|
static long |
currentTimeMillis()
Returns the current time in milliseconds.
|
static void |
exit(int status)
Terminates the currently running Java application.
|
static void |
gc()
Runs the garbage collector.
|
static String |
getProperty(String key)
Gets the system property indicated by the specified key.
|
static int |
identityHashCode(Object x)
Returns the same hashcode for the given object as would be returned by the default method hashCode(), whether or not the given object's class overrides hashCode().
|
public static final PrintStream err
public static final PrintStream out
public static void arraycopy(Object src, int srcOffset, Object dst, int dstOffset, int length)
public static long currentTimeMillis()
public static void exit(int status)
public static void gc()
public static String getProperty(String key)
public static int identityHashCode(Object x)
Copyright © 2024. All rights reserved.