Cover
Table of Contents
Title Page
Copyright
Dedication
Acknowledgments
About the Authors
About the Technical Editor
About the Technical Proofreader
Introduction
Understanding the Exam
Reading This Book
Studying for the Exam
Applying Test-Taking Strategies
Taking the Exam
Objective Map
How to Contact the Publisher
Assessment Test
Answers to Assessment Test
Chapter 1: Building Blocks
Learning About the Environment
Understanding the Class Structure
Writing a main() Method
Understanding Package Declarations and Imports
Creating Objects
, Understanding Data Types
Declaring Variables
Initializing Variables
Managing Variable Scope
Destroying Objects
Summary
Exam Essentials
Review Questions
Chapter 2: 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 3: Making Decisions
Creating Decision-Making Statements
Building switch Statements and Expressions
Writing while Loops
Constructing for Loops
Controlling Flow with Branching
Summary
Exam Essentials
Review Questions
Chapter 4: Core APIs
, Creating and Manipulating Strings
Using the StringBuilder Class
Understanding Equality
Understanding Arrays
Calculating with Math APIs
Working with Dates and Times
Summary
Exam Essentials
Review Questions
Chapter 5: Methods
Designing Methods
Declaring Local and Instance Variables
Working with Varargs
Applying Access Modifiers
Accessing Static Data
Passing Data among Methods
Overloading Methods
Summary
Exam Essentials
Review Questions
Chapter 6: Class Design
Understanding Inheritance
Creating Classes
Declaring Constructors
Initializing Objects
Inheriting Members
Creating Abstract Classes
Creating Immutable Objects