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
Become familiar with development tools in OpenJDK
Chapter 1Introduction to the Java Environment
The Language, the JVM, and the Ecosystem
A Brief History of Java and the JVM
The Lifecycle of a Java Program
Comparing Java to Other Languages
Answering Some Criticisms of Java
Chapter 2Java Syntax from the Ground Up
Java Programs from the Top Down
Primitive Data Types
Expressions and Operators
Introduction to Classes and Objects
Packages and the Java Namespace
Java File Structure
Defining and Running Java Programs
Chapter 3Object-Oriented Programming in Java
Overview of Classes
Fields and Methods
Creating and Initializing Objects
Subclasses and Inheritance
Data Hiding and Encapsulation
Abstract Classes and Methods
Chapter 4The Java Type System
Enums and Annotations
Chapter 5Introduction to Object-Oriented Design in Java
Important Methods of java.lang.Object
Aspects of Object-Oriented Design
Exceptions and Exception Handling
Safe Java Programming
Chapter 6Java’s Approach to Memory and Concurrency
Basic Concepts of Java Memory Management
How the JVM Optimizes Garbage Collection
The HotSpot Heap
Java’s Support for Concurrency
Working with Threads
Working with the Java Platform
Chapter 7Programming and Documentation Conventions
Naming and Capitalization Conventions
Java Documentation Comments
Conventions for Portable Programs
Chapter 8Working with Java Collections
Introduction to Collections API
Lambda Expressions in the Java Collections
Chapter 9Handling Common Data Formats
Numbers and Math
Java 8 Date and Time
Chapter 10File Handling and I/O
Classic Java I/O
Modern Java I/O
NIO Channels and Buffers
Chapter 11Classloading, Reflection, and Method Handles
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.
The animal on the cover of Java in a Nutshell, Sixth Edition, is a Javan tiger (Panthera tigris sondaica), a subspecies unique to the island of Java. Although this tiger's genetic isolation once presented an unrivaled opportunity to biologists and other researchers, the subspecies has all but disappearead in the wake of human encroachment on its habitat: in a worst-case scenario for the tiger, Java developed into the most densely populated island on Earth, and awareness of the Javan tiger’s precarious position apparently came too late to secure the animal's survival even in captivity.
The last confirmed sighting of the tiger occurred in 1976, and it was declared extinct by the World Wildlife Fund in 1994. However, reports of sightings around Meru Betiri National Park in East Java and in the Muria mountain range persist. Camera traps have been used as recently as 2012 in efforts to verify the Javan tiger's continued existence.
Many of the animals on O'Reilly covers are endangered; all of them are important to the world. To learn more about how you can help, go to animals.oreilly.com.
The cover image is a 19th-century engraving from the Dover Pictorial Archive. The cover fonts are URW Typewriter and Guardian Sans. The text font is Adobe Minion Pro; the heading font is Adobe Myriad Condensed; and the code font is Dalton Maag's Ubuntu Mono.
Comments about oreilly Java in a Nutshell, 6th Edition:
I teach Java at a Community College so I'm always looking for good reference material for my students. The style of this book is quite approachable but also fairly complete in its exposition.
Only the beginning chapters were currently available and I am still reading Chapter 2. But I like what I see.
There does need to be quite a bit of editing done on this book because I found many mistakes in typography as well as program code. I'm hoping that this situation will improve in future updates of the book
Bottom Line Yes, I would recommend this to a friend