Previous


1.1 Changes: Runtime Class

Deprecated Methods

The first column in the following table lists the methods in the Runtime class that are deprecated in the JDK 1.1. These classes were deprecated because the JDK 1.1 introduced new internationalization features including I/O classes that translate a byte stream into a character stream based on a character-encoding. The second column lists the classes to use in place of the deprecated methods:

Deprecated Methods Alternatives
getLocalizedInputStream(InputStream) InputStreamReader(in the API reference documentation) or BufferedReader(in the API reference documentation) classes
getLocalizedOutputStream(OutputStream) OutputStreamReader(in the API reference documentation) or BufferedWriter(in the API reference documentation) or PrintWriter(in the API reference documentation) classes

New Methods

The following method was added to the Runtime class for the JDK 1.1:
runFinalizersOnExit(boolean)
For information about this method, see the notes regarding a similar change to the System class in the JDK 1.1 API Changes to the System Class


Previous