Book description
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
Publisher resources
Table of contents
- Foreword
- Preface
- I. Introducing Java
- 1. Introduction to the Java Environment
-
2. Java Syntax from the Ground Up
- Java Programs from the Top Down
- Lexical Structure
- Primitive Data Types
- Expressions and Operators
-
Statements
- Expression Statements
- Compound Statements
- The Empty Statement
- Labeled Statements
- Local Variable Declaration Statements
- The if/else Statement
- The switch Statement
- The while Statement
- The do Statement
- The for Statement
- The foreach Statement
- The break Statement
- The continue Statement
- The return Statement
- The synchronized Statement
- The throw Statement
- The try/catch/finally Statement
- The try-with-resources Statement
- The assert Statement
- Methods
- Introduction to Classes and Objects
- Arrays
- Reference Types
- Packages and the Java Namespace
- Java Source File Structure
- Defining and Running Java Programs
- Summary
- 3. Object-Oriented Programming in Java
- 4. The Java Type System
- 5. Introduction to Object-Oriented Design in Java
- 6. Java’s Approach to Memory and Concurrency
- II. Working with the Java Platform
- 7. Programming and Documentation Conventions
- 8. Working with Java Collections
- 9. Handling Common Data Formats
- 10. File Handling and I/O
- 11. Classloading, Reflection, and Method Handles
- 12. Java Platform Modules
- 13. Platform Tools
- A. Additional Tools
- Index
Product information
- Title: Java in a Nutshell, 7th Edition
- Author(s):
- Release date: December 2018
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492037255
You might also like
book
Modern Java in Action
Modern Java in Action connects new features of the Java language with their practical applications. Using …
book
Java How to Program, Early Objects, 11th Edition
For courses in Java programming Unparalleled breadth and depth of object-oriented programming concepts The Deitels’ groundbreaking …
book
Java: The Complete Reference, Eleventh Edition, 11th Edition
The Definitive Java Programming Guide Fully updated for Java SE 11, Java: The Complete Reference, Eleventh …
book
Grokking Algorithms
Grokking Algorithms is a friendly take on this core computer science topic. In it, you'll learn …