Synopses & Reviews
Java just keeps growing, adding features, functionality, complexity, and tempting developers to growl with frustration. The new 1.4 release of Java 2 Standard edition increases the size of the platform by 50%, to 2757 classes in 135 packages. How are you going to figure out what this means for your applications? As always, Java in a Nutshell has the answers. The new 4th edition still contains an accelerated introduction to the Java programming language and its key APIs so you can start writing code right away. And with more than 250 new pages, author David Flanagan quickly brings you up to speed on new features that come with version 1.4:
- High-performance NIO API
- Support for pattern matching with regular expressions
- A logging API
- A user preferences API
- New Collections classes
- An XML-based persistence mechanism for Java Beans
- Support for XML parsing using both the DOM and SAX APIs
- User authentication with the JAAS API
- Support for secure network connections using the SSL protocol
- Support for cryptography
The book contains O'Reilly's classic quick-reference for all the classes in the essential Java packages, so you can dive in and find what you need to make the new 1.4 version work for you. For as long as Java developers have existed,
Java in a Nutshell has been ready, willing and able to take you right to the heart of the program, turning those frustrated grrrrss into purrrss of satisfaction. No wonder readers of Java Developer's Journal voted this the "Best Java Book" the past two years in a row!
Synopsis
The 1.4 release of Java 2 Standard edition brings a load of new features--and the potential for frustration. The new 4th edition has answers. The accelerated introduction lets users start writing code right away, and the book's classic quick reference contains all the classes in the essential Java packages.
About the Author
David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and son in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia. David has a simple website at http://www.davidflanagan.com.
Table of Contents
Dedication; Preface; Changes in the Fourth Edition; Contents of This Book; Related Books; Java Programming Resources Online; Examples Online; Conventions Used in This Book; Request for Comments; How the Quick Reference Is Generated; Acknowledgments; Introducing Java; Chapter 1: Introduction; 1.1 What Is Java?; 1.2 Key Benefits of Java; 1.3 An Example Program; Chapter 2: Java Syntax from the Ground Up; 2.1 The Unicode Character Set; 2.2 Comments; 2.3 Identifiers and Reserved Words; 2.4 Primitive Data Types; 2.5 Expressions and Operators; 2.6 Statements; 2.7 Methods; 2.8 Classes and Objects; 2.9 Array Types; 2.10 Reference Types; 2.11 Packages and the Java Namespace; 2.12 Java File Structure; 2.13 Defining and Running Java Programs; 2.14 Differences Between C and Java; Chapter 3: Object-Oriented Programming in Java; 3.1 The Members of a Class; 3.2 Creating and Initializing Objects; 3.3 Destroying and Finalizing Objects; 3.4 Subclasses and Inheritance; 3.5 Data Hiding and Encapsulation; 3.6 Abstract Classes and Methods; 3.7 Interfaces; 3.8 Inner Class Overview; 3.9 Static Member Classes; 3.10 Member Classes; 3.11 Local Classes; 3.12 Anonymous Classes; 3.13 How Inner Classes Work; 3.14 Modifier Summary; 3.15 C++ Features Not Found in Java; Chapter 4: The Java Platform; 4.1 Java Platform Overview; 4.2 Strings and Characters; 4.3 Numbers and Math; 4.4 Dates and Times; 4.5 Arrays; 4.6 Collections; 4.7 Types, Reflection, and Dynamic Loading; 4.8 Threads; 4.9 Files and Directories; 4.10 Input and Output Streams; 4.11 Networking; 4.12 Properties and Preferences; 4.13 Logging; 4.14 The New I/O API; 4.15 XML; 4.16 Processes; 4.17 Security; 4.18 Cryptography; Chapter 5: Java Security; 5.1 Security Risks; 5.2 Java VM Security and Class File Verification; 5.3 Authentication and Cryptography; 5.4 Access Control; 5.5 Security for Everyone; 5.6 Permission Classes; Chapter 6: JavaBeans; 6.1 Bean Basics; 6.2 JavaBeans Conventions; 6.3 Bean Contexts and Services; Chapter 7: Java Programming and Documentation Conventions; 7.1 Naming and Capitalization Conventions; 7.2 Portability Conventions and Pure Java Rules; 7.3 Java Documentation Comments; Chapter 8: Java Development Tools; API Quick Reference; Chapter 9: java.beans and java.beans.beancontext; Chapter 10: java.io; Chapter 11: java.lang, java.lang.ref,and java.lang.reflect; Chapter 12: java.math; Chapter 13: java.net; Chapter 14: java.nio and Subpackages; Chapter 15: java.security and Subpackages; Chapter 16: java.text; Chapter 17: java.util and Subpackages; Chapter 18: javax.crypto and Subpackages; Chapter 19: javax.net and javax.net.ssl; Chapter 20: javax.security.auth and Subpackages; Chapter 21: javax.xml.parsers, java.xml.transform, and Subpackages; Chapter 22: org.ietf.jgss; Chapter 23: org.w3c.dom; Chapter 24: org.xml.sax, org.xml.sax.ext,and org.xml.sax.helpers; Colophon;