THE PACKAGE JAVA.LANG
java.lang.Runtime
20.16
20.16 The Class
java.lang.Runtime
public class Runtime {
public static Runtime getRuntime();
public void exit(int status) throws SecurityException;
public Process exec(String command) throws
IOException, SecurityException, IndexOutOfBoundsException;
public Process exec(String command, String envp[]) throws
IOException, SecurityException, IndexOutOfBoundsException;
public Process exec(String cmdarray[]) throws
IOException, SecurityException, IndexOutOfBoundsException;
public Process exec(String cmdarray[], String envp[]) throws
IOException, SecurityException, IndexOutOfBoundsException;
public long totalMemory();
public long freeMemory();
public void gc();
public void runFinalization();
public void traceInstructions(boolean on);
public void traceMethodCalls(boolean on);
public void load(String filename)
throws SecurityException, UnsatisfiedLinkError;
public void loadLibrary(String libname)
throws SecurityException, UnsatisfiedLinkError;
public InputStream getLocalizedInputStream(InputStream in);
public OutputStream
getLocalizedOutputStream(OutputStream out);
}
20.16.1
public static Runtime getRuntime()
This method returns the current
Runtime
object. Most of the methods of class
Runtime
are instance methods and must be invoked with respect to the current
runtime object.
20.16.2
public void exit(int status)
throws SecurityException
First, if there is a security manager, its
checkExit
method ( 20.17.13) is called
with the
status
value as its argument.
This method terminates the currently running Java Virtual Machine. The argu
ment serves as a status code; by convention, a nonzero status code indicates
abnormal termination.
563
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved