|
JDK 1.4 Tutorial Gregory M. Travis 2002 | 408 pages ISBN: 1930110456 |
|||
![]() |
$17.50 | PDF ebook | |
| $34.95 | Softbound print book | Out of print (?) | |
Errata
It is our goal at Manning Publications to provide error-free texts. Inevitably, however, minor errors creep into every book in production. Any errors found in the book may be posted to the book's Author Online Forum.
Page 4, Section 1.1.2
The title of Section 1.1.1 should be changed from
Creating a buffer revision
to
Creating a buffer
Page 5, Paragraph 3:
The text
"In the old method, the available space was len-off;"
should be changed to:
"In the old method, the available space was min( len, b.length-off );"
Page 45, first two listings:
In each of the first two listings, the line
SocketChannel sch = socket.getChannel()
should be replaced by
SocketChannel sch = newSocket.getChannel()
Page 52:
Table 2.1 claims that OP_CONNECT is valid for server sockets, in contradiction to the text. The text is correct: OP_CONNECT is only valid for regular sockets.
Page 57, Listing 2.3:
Two instances of the following line
selector.selectedKeys().remove( rsk );
should be replaced by
it.remove();
Page 112-113, Listing 4.1:
In some cases, Under WinXP and IE6, all comments must be removed from PicoDraw.jnlp before it will be ready properly by IE.
Page 118, Listing 4.2:
"PicoDraw.javatt"
should read
"PicoDraw.java"
Page 142, Section 5.1.6
The text refers to figure 5.2, but it should refer to figure 5.3.
Page 149, Section 5.3
The text refers to listing 5.3, but it should refer to listing 5.1.
Page 150, Listing 5.2:
(See also \Chapter5\org\jdk14tut\chat\MultiplexingChatClient.java, \Chapter5\org\jdk14tut\chat\MultiplexingChatClientApplet.java, \Chapter5\client.html)
should read
(See also \Chapter5\org\jdk14tut\chat\ChatClient.java, \Chapter5\org\jdk14tut\chat\ChatClientApplet.java, \Chapter5\client.html)
Page 190, Section 6.3.3:
The line reading
passiveConnections.remove( connection );
should be
activeConnections.remove( connection );
Page 191, Section 6.3.3:
The line reading
passiveConnections.remove( connection );
should be
activeConnections.remove( connection );
Page 270, Section 9.3.1:
"longestword.pl (see Listing 9.1) scans a series..."
should read
"longestworld.pl (see Listing 9.3) scans a series of colon-delimited lines and prints out the longest word from each line. Listing 9.1 shows an example colon-delimited file."
Downloadable code:
In the first version of the online code, \Chapter4\PicoDraw.java would not compile. Please download the latest version of the code.
DESCRIPTION
Java is a success. It is now used across the programming landscape, from embedded devices to enterprise-class distributed systems. As Java's use increases, the pressure grows for it to expand to meet the diverse needs of the developer communities. The latest edition of Java, JDK 1.4 (or J2SE 1.4), includes new features like a new I/O system, a persistent preferences framework, Java Web Start, and Java regular expressions.
This book lets experienced developers as well as novices learn JDK 1.4's new features quickly. It provides a clear exposition of the important new topics with plenty of well documented code. All the examples are substantial and solve real-world problems but aren't cluttered with unnecessary details. The new features are covered in a comprehensive and matter-of-fact way without digressions into philosophy or theory. After reading this book, a developer will be able to use Java's new features with confidence and skill.
What's Inside
- New Input/Output
- Non-blocking I/O
- Channels and buffers
- Charsets and charset translation
- TCP/IP connection forwarding
- Java Web Start
- Regular Expressions
- Preferences Library
- Java Secure Socket Extension
- Image I/O
ABOUT THE AUTHOR...
Greg Travis is a consultant and prolific writer based in New York City. He has been a Java programmer since the first day the language was released.

