Java in a Nutshell: A Desktop Quick Reference

Front Cover
"O'Reilly Media, Inc.", Oct 27, 2014 - Computers - 418 pages

The latest edition of Java in a Nutshell is designed to help experienced Java programmers get the most out of Java 7 and 8, but it’s also a learning path for new developers. Chock full of examples that demonstrate how to take complete advantage of modern Java APIs and development best practices, the first section of this thoroughly updated book provides a fast-paced, no-fluff introduction to the Java programming language and the core runtime aspects of the Java platform.

The second section is a reference to core concepts and APIs that shows you how to perform real programming work in the Java environment.

  • Get up to speed on language details, including Java 8 changes
  • Learn object-oriented programming, using basic Java syntax
  • Explore generics, enumerations, annotations, and lambda expressions
  • Understand basic techniques used in object-oriented design
  • Examine concurrency and memory, and how they’re intertwined
  • Work with Java collections and handle common data formats
  • Delve into Java’s latest I/O APIs, including asynchronous channels
  • Use Nashorn to execute JavaScript on the Java Virtual Machine
  • Become familiar with development tools in OpenJDK
 

Contents

Part I Introducing Java
1
Chapter 1 Introduction to the Java Environment
3
Chapter 2 Java Syntax from the Ground Up
17
Chapter 3 ObjectOriented Programming in Java
97
Chapter 4 The Java Type System
135
Chapter 5 Introduction to ObjectOriented Design in Java
177
Chapter 6 Javas Approach to Memory and Concurrency
197
Part II Working with the Java Platform
221
Chapter 8 Working with Java Collections
239
Chapter 9 Handling Common Data Formats
267
Chapter 10 File Handling and IO
289
Chapter 11 Classloading Reflection and Method Handles
311
Chapter 12 Nashorn
331
Chapter 13 Platform Tools and Profiles
349
Index
373
Copyright

Chapter 7 Programming and Documentation Conventions
223

Other editions - View all

Common terms and phrases

About the author (2014)

Ben Evans is theCo-founder and Technology Fellow of jClarity, a startup which delivers performance tools to help development & ops teams. He helps to organise the London Java Community, and represents them on the Java Community Process Executive Committee where he works to define new standards for the Java ecosystem. He is a Java Champion; JavaOne Rockstar; co-author of “The Well-Grounded Java Developer” and a regular public speaker on the Java platform, performance, concurrency, and related topics. 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 children in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia. David has a blog at www.davidflanagan.com.

Bibliographic information