Book description
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
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 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. Nashorn
- 13. Platform Tools and Profiles
- Index
Product information
- Title: Java in a Nutshell, 6th Edition
- Author(s):
- Release date: October 2014
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449371326
You might also like
book
Deciphering Data Architectures
Data fabric, data lakehouse, and data mesh have recently appeared as viable alternatives to the modern …
book
Effective Java, 3rd Edition
Since this Jolt-award winning classic was last updated in 2008, the Java programming environment has changed …
book
Modern Software Engineering: Doing What Works to Build Better Software Faster
Improve Your Creativity, Effectiveness, and Ultimately, Your Code In Modern Software Engineering, continuous delivery pioneer David …
audiobook
Software Architecture for Busy Developers
A quick start guide to learning essential software architecture tools, frameworks, design patterns, and best practices …