20.18
java.lang.System
THE PACKAGE JAVA.LANG
20.18.8
public static void setProperties(Properties props)
throws SecurityException
First, if there is a security manager, its
checkPropertiesAccess
method
( 20.17.15) is called with no arguments.
The argument becomes the current set of system properties for use by the
getProperty
method. See the class
Properties
( 21.6). If the argument is
null
, then the current set of system properties is forgotten.
20.18.9
public static String getProperty(String key)
throws SecurityException
First, if there is a security manager, its
checkPropertyAccess
method
( 20.17.16) is called with the
key
as its argument.
If there is no current set of system properties, a set of system properties is first
created and initialized in the same manner as for the
getProperties
method
( 20.18.7).
The system property value associated with the specified
key
string is returned.
If there is no property with that key, then
null
is returned.
20.18.10
public static String getProperty(String key,
String defaults)
throws SecurityException
First, if there is a security manager, its
checkPropertyAccess
method
( 20.17.16) is called with the
key
as its argument.
If there is no current set of system properties, a set of system properties is first
created and initialized in the same manner as for the
getProperties
method
( 20.18.7).
The system property value associated with the specified
key
string is returned.
If there is no property with that key, then the argument
defaults
is returned.
20.18.11
public static void exit(int status)
throws SecurityException
This method terminates the currently running Java Virtual Machine. The argument
serves as a status code; by convention, a nonzero status code indicates abnormal
termination.
This method never returns normally.
582
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