Description:
This concise guide to the Java programming language, version 5.0, offers a quick reference for the reader who wants to know the language in greater detail than that provided by the standard text or language reference book. It presents the entire Java programming language and essential parts of the class libraries -- the collection classes and the input-output classes.
The second edition adds material on autoboxing of primitive types, string formatting, variable-arity methods, the enhanced for statement, enum types, generic types and methods, reflection, and meta-data annotations. It has been updated throughout to reflect the changes from Java 1.4 to Java 5.0. The final section summarizes and illustrates the new features of Java 5.0 and compares them to the C# programming language. General rules are shown on left-hand pages and corresponding examples on right-hand pages. All examples are fragments of legal Java programs and the complete ready-to-run example programs can be found at the book's Web site, http://www.dina.kvl.dk/~sestoft/javaprecisely/.
Peter Sestoft is Professor of Information Technology at the Royal Veterinary and Agricultural University and at the IT University of Copenhagen, Denmark.
Table of Contents:
Preface ix Notational Conventions x 1. Running Java: Compilation, Loading, and Execution 2 2. Names and Reserved Names 2 3. Java Naming Conventions 2 4. Comments and Program Layout 2 5. Types 4 6. Variables, Parameters, Fields, and Scope 8 7. Strings 10 Brand Slider