Deprecated MethodsThe first column in the following table lists the methods in the
Systemclass that are deprecated in the JDK 1.1. The second column lists alternatives for those methods:
Deprecated Methods Alternatives
getenvmethod has been out of use for several releases of the JDK. The 1.1 release formalizes this change by deprecating the method. Programmers should use
Propertiesto store information between invocations of a program. Setting Up and Using Properties talks about how to use the
Propertiesclass and Managing Locale-Sensitive Data shows you how to use properties to help internationalize your Java programs.
New MethodsThe following methods were added to the
Systemclass for the JDK 1.1:ThesetErr(PrintStream) setIn(InputStream) setOut(PrintStream) runFinalizersOnExit(boolean) identityHashCode(Object)
setOutmethods reassign the standard error, standard input and standard output streams, respectively. The Standard I/O Streams in this lesson discusses these streams.
runFinalizersOnExitdetermines whether or not
finalizemethods are invoked when a program is exiting. By default, this is turned off. Cleaning Up Unused Objects talks about
finalizemethods and garbage collection in more detail.
identityHashCodereturns a hash code for the specified object. Hash codes are not covered in this tutorial. Use the online API documentation for the
Objectclass for information.