Author(s): Jeanne Boyarsky, Scott Selikoff
Publisher: Sybex
Year: 2019
Language: English
Pages: 854
Acknowledgments
About the Authors
Introduction
Taking the Assessment Test
Answers to Assessment Test
Chapter 1 Welcome to Java
Learning About the Java Environment
Identifying Benefits of Java
Understanding the Java Class Structure
Writing a main() Method
Understanding Package Declarations and Imports
Ordering Elements in a Class
Code Formatting on the Exam
Summary
Exam Essentials
Review Questions
Chapter 2 Java Building Blocks
Creating Objects
Understanding Data Types
Declaring Variables
Initializing Variables
Managing Variable Scope
Destroying Objects
Summary
Exam Essentials
Review Questions
Chapter 3 Operators
Understanding Java Operators
Applying Unary Operators
Working with Binary Arithmetic Operators
Assigning Values
Comparing Values
Making Decisions with the Ternary Operator
Summary
Exam Essentials
Review Questions
Chapter 4 Making Decisions
Creating Decision-Making Statements
Writing while Loops
Constructing for Loops
Controlling Flow with Branching
Summary
Exam Essentials
Review Questions
Chapter 5 Core Java APIs
Creating and Manipulating Strings
Using the StringBuilder Class
Understanding Equality
Understanding Java Arrays
Understanding an ArrayList
Creating Sets and Maps
Calculating with Math APIs
Summary
Exam Essentials
Review Questions
Chapter 6 Lambdas and Functional Interfaces
Writing Simple Lambdas
Introducing Functional Interfaces
Working with Variables in Lambdas
Calling APIs with Lambdas
Summary
Exam Essentials
Review Questions
Chapter 7 Methods and Encapsulation
Designing Methods
Working with Varargs
Applying Access Modifiers
Applying the static Keyword
Passing Data among Methods
Overloading Methods
Encapsulating Data
Summary
Exam Essentials
Review Questions
Chapter 8 Class Design
Understanding Inheritance
Creating Classes
Declaring Constructors
Inheriting Members
Understanding Polymorphism
Summary
Exam Essentials
Review Questions
Chapter 9 Advanced Class Design
Creating Abstract Classes
Implementing Interfaces
Introducing Inner Classes
Summary
Exam Essentials
Review Questions
Chapter 10 Exceptions
Understanding Exceptions
Recognizing Exception Classes
Handling Exceptions
Calling Methods That Throw Exceptions
Summary
Exam Essentials
Review Questions
Chapter 11 Modules
Introducing Modules
Creating and Running a Modular Program
Updating Our Example for Multiple Modules
Diving into the module-info File
Discovering Modules
Reviewing Command-Line Options
Summary
Exam Essentials
Review Questions
Appendix Answers to Review Questions
Chapter 1: Welcome to Java
Chapter 2: Java Building Blocks
Chapter 3: Operators
Chapter 4: Making Decisions
Chapter 5: Core Java APIs
Chapter 6: Lambdas and Functional Interfaces
Chapter 7: Methods and Encapsulation
Chapter 8: Class Design
Chapter 9: Advanced Class Design
Chapter 10: Exceptions
Chapter 11: Modules
Index
Advert
End User License Agreement