The professional programmer’s Deitel® guide to Java® 9 and the powerful Java platform
Written for programmers with a background in another high-level language, this book applies the Deitel signature live-code approach to teaching programming and explores the Java® 9 language and APIs in depth. The book presents concepts in fully tested programs, complete with code walkthroughs, syntax shading, code highlighting and program outputs. It features hundreds of complete Java 9 programs with thousands of lines of proven code, and hundreds of software-development tips that will help you build robust applications.
Start with an introduction to Java using an early classes and objects approach, then rapidly move on to more advanced topics, including JavaFX GUI, graphics, animation and video, exception handling, lambdas, streams, functional interfaces, object serialization, concurrency, generics, generic collections, database with JDBC™ and JPA, and compelling new Java 9 features, such as the Java Platform Module System, interactive Java with JShell (for discovery, experimentation and rapid prototyping) and more. You’ll enjoy the Deitels’ classic treatment of object-oriented programming and the object-oriented design ATM case study, including a complete Java implementation. When you’re finished, you’ll have everything you need to build industrial-strength, object-oriented Java 9 applications.
New Java® 9 Features
Core Java Features
Keep in Touch
Part 1: Introduction
Chapter 1, Introduction and Test-Driving a Java Application
Chapter 2, Introduction to Java Applications; Input/Output and Operators
Chapter 3, Introduction to Classes, Objects, Methods and Strings
Chapter 23, Introduction to JShell: Java 9’s REPL for Interactive Java
Part 2: Core Programming Topics
Chapter 4, Control Statements: Part 1; Assignment, ++ and — Operators
Chapter 5, Control Statements: Part 2; Logical Operators
Chapter 6, Methods: A Deeper Look
Chapter 7, Arrays and ArrayLists
Chapter 14, Strings, Characters and Regular Expressions
Chapter 15, Files, Input/Output Streams, NIO and XML Serialization
Part 3: Object-Oriented Programming
Chapter 8, Classes and Objects: A Deeper Look
Chapter 9, Object-Oriented Programming: Inheritance
Chapter 10, Object-Oriented Programming: Polymorphism and Interfaces
Chapter 11, Exception Handling: A Deeper Look
Part 4: JavaFX Graphical User Interfaces, Graphics, Animation and Video
Chapter 12, JavaFX Graphical User Interfaces: Part 1
Chapter 13, JavaFX GUI: Part 2
Chapter 20, JavaFX Graphics, Animation and Video
Part 5: Generics, Generic Collections, Lambdas and Streams
Chapter 16, Generic Collections
Chapter 17, Lambdas and Streams
Chapter 18, Recursion
Chapter 19, Generic Classes and Methods: A Deeper Look
Part 6: Concurrency and Multi-Core Performance
Chapter 21, Concurrency and Multi-Core Performance
Part 7: Database-Driven Desktop Development
Chapter 22, Accessing Databases with JDBC
Chapter 24, Java Persistence API (JPA)
Part 8: Modularity and Additional Java 9 Topics
Chapter 27, Java Platform Module System
Chapter 28, Additional Java 9 Topics
Part 9: Object-Oriented Design
Chapter 25, ATM Case Study, Part 1: Object-Oriented Design with the UML
Chapter 26, ATM Case Study Part 2: Implementing an Object-Oriented Design