Java 2 SDK for Solaris Developer's Guide

Source Compatibility

Java 2 SDK for Solaris is upwards source-compatible with JDK versions 1.0 and 1.1, except for the incompatibilities listed below. This means that, except for the noted incompatibilities, source files written to use the language features and APIs defined for JDK 1.0 and 1.1 can be compiled and run on Java 2 SDK for Solaris.

Downward source compatibility is not supported. If source files use new language features or Java 2 SDK for Solaris APIs, they are not usable with an earlier version of the Java platform.

In general, the policy is that:

Deprecated APIs are methods and classes supported only for backward compatibility. The compiler generates a warning message whenever it encounters deprecated APIs (unless you use the -nowarn command-line option). You should eliminate the use of deprecated methods and classes because it has not been determined when or if the deprecated elements will be removed from the APIs.