.class
files, 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.net
base classes. With JDK 1.1, Socket
and ServerSocket
are non-final, extendable classes. New subclasses of SocketException
have been added for finer granularity in reporting and handling network errors. The class MulticastSocket
moves from sun.net
to java.net
. Also includes general performance improvements and bug fixes.BigInteger
and BigDecimal
. BigInteger
numbers are immutable arbitrary-precision integers, which provide analogs to all of Java's primitive integer operators, and all relevant static methods from java.lang.Math
. Additionally, BigInteger
numbers provide operations for modular arithmetic, GCD calculation, primality testing, prime generation, single-bit manipulation, and a few other odds and ends.BigDecimal
numbers are immutable, arbitrary-precision signed decimal numbers, suitable for monetary calculations. BigDecimal
numbers provide operations for basic arithmetic, scale manipulation, comparison, format conversion and hashing.Byte
and Short
. The abstract class Number
gets two new concrete methods: byteValue
and shortValue
; the default implementations of these use intValue
method. Also includes a new class Void
that 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.
idltojava
compiler 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.