java.lang.System
The System class contains several useful class fields and methods. It cannot be instantiated. Among the facilities provided by the System, class are standard input, standard output, and error output streams; access to externally defined properties and environment variables; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.
Some of the Methods of System class.
System.inheritedChannel(): This method returns the channel inherited from the entity that created this java virtual machine.
System.lineSeparator(): This method returns the system-dependent line separator string. It always returns the same value - the initial value of the system property line.separator.
System.load(): his method gets the system property indicated by the specified key. First, if there is a security manager, its checkPropertyAccess method is called with the key asits argument. This may result in a SecurityException.
System.loadLibrary(): This method loads the native library specified by the libname argument.
System.mapLibraryName(): This method maps a library name into a platform-specific string representing a native library.
System.nanoTime(): This method returns the current value of the running Java Virtual Machine'shigh-resolution time source, in nanoseconds.
System.out: The "standard" output stream. This stream is already open and ready to accept output data.
System.runFinalization(): This method runs the finalization methods of any objects pending finalization.
System.setErr(): This method reassigns the "standard" error output stream.
System.setIn(): Reassigns the "standard" input stream.
System.setOut(): This method reassigns the "standard" output stream.
System.setProperties(): This method sets the system properties to the Properties argument.
System.setProperty(): This method sets the system property indicated by the specified key.
System.setSecurityManager(): This method sets the system-wide security manager.
Some more methods of System class
No comments:
Post a Comment