|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Although the basic mechanism for exception handling did not change for the JDK 1.1, many new exception and error classes were added to JDK for 1.1. For the sake of brevity and deadlines, we do not list them here.
java.langThree new data type wrapper classes were added to the java.lang package in the JDK 1.1:
ByteShortVoidByteandShortare subclasses ofNumberand are similar to the other data type wrapper classes such asInteger.Voidwas added for completeness and is a subclass ofObject.Voidis used by the reflection methods to representvoidreturn types.The tutorial does not cover these classes. They will be covered in the second edition of The Java Language Specification and are covered online in the
javadoc-generated API documentation.
java.ioThejava.iopackage has been extended with character streams, which are like byte streams except that they read and write 16-bit Unicode characters rather than eight-bit bytes. Additionally,java.iohas been extended to support object serialization.The new classes are:
BufferedReaderandBufferedWriterCharArrayReaderandCharArrayWriterFileReaderandFileWriterFilterReaderandFilterWriterInputStreamReaderLineNumberReaderObjectInputStreamandObjectOutputStreamObjectStreamClassOutputStreamWriterPipedReaderandPipedWriterPrintWriterPushbackReaderReaderandWriterStringReaderandStringWriterThe new interfaces are:
All of the I/O classes, including the new character streams, are covered in I/O: Reading and Writing (but no 'rithmetic)
ExternalizableObjectInputObjectInputValidationObjectOutputSerializable.
java.utilEight classes were added tojava.utilto support internationalization:Our online trail Internationalization
CalendarGregorianCalendarListResourceBundleLocalePropertyResourceBundleResourceBundleSimpleTimeZoneTimeZonecontains information about writing Java programs that are independent of users' language and culture.
Two classes were added to
java.utilto support event handling:
EventListenerEventObject
java.netThree classes and one interface were added to thejava.netpackage:
DatagramSocketImplHttpURLConnectionMulticastSocketFileNameMap(an interface)Broadcasting to Multiple Recipients
provides an example of using a
MulticastSocket. The other classes and interfaces are not covered in this tutorial.
java.appletThe basic applet API hasn't changed, except for the addition of an attribute,ARCHIVE, to the<APPLET>tag. With the help of the newARCHIVEattribute, you can tell browsers to load your applet's files from Java archive (JAR) files. Using JAR files can significantly reduce applet loading time and help you work around unnecessary security restrictions.Since applets can use most of the classes in the JDK, most of the changes described in other trails apply to applets, as well. Applets are probably most affected by the 1.1 changes to the AWT (see the next section). Another significant change is that signed classes make it possible to create trusted applets (depending on browser support).
|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.