Java Precisely, Third Edition

by Sestoft

ISBN: 9780262364201 | Copyright 2016

Click here to preview

Instructor Requests

Digital Exam/Desk Copy Print Desk Copy Ancillaries
Tabs

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.

The triple espresso of Java books. Rich and dense with information.

Richard Pattis, Department of Computer Science, Carnegie Mellon University

This no-nonsense book gives fast access to the essentials of each Java construct. It is a great reference for the Java student.

Alan W. Biermann Professor and Chair, Department of Computer Science, Duke University
Expand/Collapse All
Contents (pg. v)
Preface (pg. xi)
Notational Conventions (pg. xii)
1 Running Java: Compilation, Loading, and Execution (pg. 2)
2 Names and Reserved Names (pg. 2)
3 Java Naming Conventions (pg. 2)
4 Comments and Program Layout (pg. 2)
5 Types (pg. 4)
6 Variables, Parameters, Fields, and Scope (pg. 8)
7 Strings (pg. 10)
8 Arrays (pg. 16)
9 Classes (pg. 22)
10 Classes and Objects in the Computer (pg. 34)
11 Expressions (pg. 36)
12 Statements (pg. 52)
13 Interfaces (pg. 66)
14 Enum Types (pg. 70)
15 Exceptions, Checked and Unchecked (pg. 72)
16 Compilation, Source Files, Class Names, and Class Files (pg. 74)
17 Packages and Jar Files (pg. 74)
18 Mathematical Functions (pg. 76)
19 String Builders and String Buffers (pg. 78)
20 Threads, Concurrent Execution, and Synchronization (pg. 80)
21 Generic Types and Methods (pg. 88)
22 Generic Collections and Maps (pg. 102)
23 Functional Interfaces (Java 8.0) (pg. 122)
24 Streams for Bulk Data (Java 8.0) (pg. 132)
25 Class Optional (Java 8.0) (pg. 146)
26 Input and Output (pg. 148)
27 Reflection (pg. 172)
28 Metadata Annotations (pg. 176)
29 What Is New in Java 8.0 (pg. 178)
References (pg. 180)
Index (pg. 181)
Contents (pg. v)
Preface (pg. xi)
Notational Conventions (pg. xii)
1 Running Java: Compilation, Loading, and Execution (pg. 2)
2 Names and Reserved Names (pg. 2)
3 Java Naming Conventions (pg. 2)
4 Comments and Program Layout (pg. 2)
5 Types (pg. 4)
6 Variables, Parameters, Fields, and Scope (pg. 8)
7 Strings (pg. 10)
8 Arrays (pg. 16)
9 Classes (pg. 22)
10 Classes and Objects in the Computer (pg. 34)
11 Expressions (pg. 36)
12 Statements (pg. 52)
13 Interfaces (pg. 66)
14 Enum Types (pg. 70)
15 Exceptions, Checked and Unchecked (pg. 72)
16 Compilation, Source Files, Class Names, and Class Files (pg. 74)
17 Packages and Jar Files (pg. 74)
18 Mathematical Functions (pg. 76)
19 String Builders and String Buffers (pg. 78)
20 Threads, Concurrent Execution, and Synchronization (pg. 80)
21 Generic Types and Methods (pg. 88)
22 Generic Collections and Maps (pg. 102)
23 Functional Interfaces (Java 8.0) (pg. 122)
24 Streams for Bulk Data (Java 8.0) (pg. 132)
25 Class Optional<T> (Java 8.0) (pg. 146)
26 Input and Output (pg. 148)
27 Reflection (pg. 172)
28 Metadata Annotations (pg. 176)
29 What Is New in Java 8.0 (pg. 178)
References (pg. 180)
Index (pg. 181)

Peter Sestoft

Peter Sestoft is Professor of Computer Science and Head of the Software and Systems Section at the IT University of Copenhagen.


eTextbook
Go paperless today! Available online anytime, nothing to download or install.

Features

  • Bookmarking
  • Note taking
  • Highlighting