Direct from the creators of the Java(tm) programming language, the completely revised fourth edition of The Java(tm) Programming Language is an indispensable resource for novice and advanced programmers alike.
Developers around the world have used previous editions to quickly gain a deep understanding of the Java programming language, its design goals, and how to use it most effectively in real-world development. Now, Ken Arnold, James Gosling, and David Holmes have updated this classic to reflect the major enhancements in Java(tm) 2 Standard Edition 5.0 (J2SE(tm) 5.0).
The authors systematically cover most classes in Java's main packages, java.lang.*, java.util, and java.io, presenting in-depth explanations of why these classes work as they do, with informative examples. Several new chapters and major sections have been added, and every chapter has been updated to reflect today's best practices for building robust, efficient, and maintainable Java software.
Key changes in this edition include
* New chapters on generics, enums, and annotations, the
most powerful new language features introduced in J2SE 5.0
* Changes to classes and methods throughout to reflect the
addition of generics
* Major new sections on assertions and regular expressions
* Coverage of all the new language features, from autoboxing
and variable argument methods to the enhanced for-loop
and covariant return types
* Coverage of key new classes, such as Formatter and Scanner
The Java(tm) Programming Language, Fourth Edition, is the definitive tutorial introduction to the Java language and essential libraries and an indispensable reference for all programmers, including those with extensive experience. It brings together insights you can only get from the creators of Java: insights that will help you write software of exceptional quality.
1 A quick tour
2 Classes and objects
3 Extending classes
4 Interfaces
5 Nested classes and interfaces
6 Enumeration types
7 Tokens, values, and variables
8 Primitives as types
9 Operators and expressions
10 Control flow
etc.