Limit search to available items
Book Cover
E-book
Author Evans, Benjamin J., author.

Title Java in a Nutshell : a desktop quick reference / Benjamin J. Evans, Jason Clark & David Flanagan
Edition 8th edition
Published Sebastopol, CA : O'Reilly Media, 2023
©2023

Copies

Description 1 online resource (482 p.)
Contents Intro -- Copyright -- Table of Contents -- Foreword -- Preface -- Changes in the Eighth Edition -- Contents of This Book -- Related Books -- Conventions Used in This Book -- Using Code Examples -- O'Reilly Online Learning -- How to Contact Us -- Acknowledgments -- Part I. Introducing Java -- Chapter 1. Introduction to the Java Environment -- The Language, the JVM, and the Ecosystem -- What Is the Java Language? -- What Is the JVM? -- What Is the Java Ecosystem? -- The Lifecycle of a Java Program -- Frequently Asked Questions -- Comparing Java to Other Languages -- Java Compared to JavaScript
Java Compared to Python -- Java Compared to C -- Java Compared to C++ -- Answering Some Criticisms of Java -- Overly Verbose -- Slow to Change -- Performance Problems -- Insecure -- Too Corporate -- A Brief History of Java and the JVM -- Summary -- Chapter 2. Java Syntax from the Ground Up -- Java Programs from the Top Down -- Lexical Structure -- The Unicode Character Set -- Case Sensitivity and Whitespace -- Comments -- Reserved Words -- Identifiers -- Literals -- Punctuation -- Primitive Data Types -- The boolean Type -- The char Type -- Integer Types -- Floating-Point Types
Primitive Type Conversions -- Expressions and Operators -- Operator Summary -- Arithmetic Operators -- String Concatenation Operator -- Increment and Decrement Operators -- Comparison Operators -- Boolean Operators -- Bitwise and Shift Operators -- Assignment Operators -- The Conditional Operator -- The instanceof Operator -- Special Operators -- Statements -- Expression Statements -- Compound Statements -- The Empty Statement -- Labeled Statements -- Local Variable Declaration Statements -- The if/else Statement -- The switch Statement -- The switch Expression -- 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 -- Defining Methods -- Method Modifiers -- Checked and Unchecked Exceptions -- Variable-Length Argument Lists -- Introduction to Classes and Objects -- Defining a Class -- Creating an Object -- Using an Object -- Object Literals -- Lambda Expressions -- Arrays -- Array Types
Creating and Initializing Arrays -- Using Arrays -- Multidimensional Arrays -- Reference Types -- Reference Versus Primitive Types -- Manipulating Objects and Reference Copies -- Comparing Objects -- Boxing and Unboxing Conversions -- Packages and the Java Namespace -- Package Declaration -- Globally Unique Package Names -- Importing Types -- Importing Static Members -- Java Source File Structure -- Defining and Running Java Programs -- Summary -- Chapter 3. Object-Oriented Programming in Java -- Overview of Classes and Records -- Basic OO Definitions -- Records -- Other Reference Types
Summary This updated edition of the Nutshell guide not only helps experienced Java programmers get the most out of versions through Java 17, it also serves as 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 recent enhancements to the Java object model that every developer should know about. The 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 through Java 17 Learn object-oriented programming using basic Java syntax Explore generics, enumerations, annotations, and lambda expressions Understand techniques used in object-oriented design Examine how concurrency and memory are 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
Notes Class Definition Syntax
Description based on online resource; title from digital title page (viewed on April 12, 2023)
Subject Java (Computer program language)
Web servers.
Object-oriented programming (Computer science)
Java (Computer program language)
Object-oriented programming (Computer science)
Web servers
Form Electronic book
Author Clark, Jason, author
Flanagan, David, author.
ISBN 9781098130961
1098130960
9781098130978
1098130979