Java in a Nutshell: A Desktop Quick Reference

Front Cover
"O'Reilly Media, Inc.", Dec 3, 2018 - Computers - 456 pages

This updated edition of Java in a Nutshell not only helps experienced Java programmers get the most out of Java versions 9 through 11, 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, this thoroughly revised book includes new material on Java Concurrency Utilities.

The book’s first section 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 explains how to perform real programming work in the Java environment.

  • Get up to speed on language details, including Java 9-11 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
19
Chapter 3 ObjectOriented Programming in Java
103
Chapter 4 The Java Type System
143
Chapter 5 Introduction to ObjectOriented Design in Java
193
Chapter 6 Javas Approach to Memory and Concurrency
217
Part II Working with the Java Platform
245
Chapter 8 Working with Java Collections
263
Chapter 9 Handling Common Data Formats
295
Chapter 10 File Handling and IO
315
Chapter 11 Classloading Reflection and Method Handles
337
Chapter 12 Java Platform Modules
357
Chapter 13 Platform Tools
375
Appendix A Additional Tools
395
Index
417

Chapter 7 Programming and Documentation Conventions
247

Other editions - View all

Common terms and phrases

About the author (2018)

Ben Evans is an author, speaker, consultant and educator. He is co-founder of jClarity, a startup which delivers performance tools & services to help development & ops teams. He helps to organize the London Java Community and serves on the Java Community Process Executive Committee, helping define standards for the Java ecosystem. He is a Java Champion, JavaOne Rockstar Speaker and a Java Editor at InfoQ. Ben travels frequently and speaks regularly, all over the world.

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