.classfiles, images and sounds) can be bundled in a JAR file and subsequently downloaded to a browser in a single HTTP transaction, greatly improving the download speed. The JAR format also supports compression, which reduces the file size, further improving the download time. In addition, the applet author can digitally sign individual entries in a JAR file to authenticate their origin. It is fully backward-compatible with existing applet code and is fully extensible, being written in Java.
java.netbase classes. With JDK 1.1,
ServerSocketare non-final, extendable classes. New subclasses of
SocketExceptionhave been added for finer granularity in reporting and handling network errors. The class
java.net. Also includes general performance improvements and bug fixes.
BigIntegernumbers are immutable arbitrary-precision integers, which provide analogs to all of Java's primitive integer operators, and all relevant static methods from
BigIntegernumbers provide operations for modular arithmetic, GCD calculation, primality testing, prime generation, single-bit manipulation, and a few other odds and ends.
BigDecimalnumbers are immutable, arbitrary-precision signed decimal numbers, suitable for monetary calculations.
BigDecimalnumbers provide operations for basic arithmetic, scale manipulation, comparison, format conversion and hashing.
Short. The abstract class
Numbergets two new concrete methods:
shortValue; the default implementations of these use
intValuemethod. Also includes a new class
Voidthat is an uninstantiable placeholder class.
The @deprecated tag- Used in documentation comments for unambiguously marking classes, methods and fields that have been superseded by new APIs. The compiler issues a warning when it processes source code that uses a deprecated API feature.
The Core Platform will be available on all Java Compatible systems supporting 1.2.
These features are not part of Swing because they require native methods, and Swing is 100% Pure Java.
Reference objects allow a program to maintain a reference to an object that does not prevent the object from being considered for reclamation by the garbage collector. They also allow a program to be notified some time after the collector has determined that an object has become eligible for reclamation. Reference objects are therefore useful for building simple caches as well as caches that are flushed only when memory is low, for implementing mappings that do not prevent their keys (or values) from being reclaimed, and for scheduling post-mortem cleanup actions in a more flexible way than is possible with the Java finalization mechanism.
idltojavacompiler generates portable client stubs and server skeletons that work with any CORBA-compliant ORB implementation.
Standard Extensions extend the Java Platform with capabilities beyond what is provided within the Java core platform. The Java Servlet API (described below), is one of many planned Standard Extensions that will be available from Sun's JavaSoft. Standard extensions must conform to the Extension Architecture.
Several of the JDK tools have improvements; the one listed here has a substantial design change and corresponding documentation.