OCP Oracle Certified Professional Java SE 21 Developer Study Guide

by Jeanne Boyarsky, Scott Selikoff

Programming

Book Details

Book Title

OCP Oracle Certified Professional Java SE 21 Developer Study Guide

Author

Jeanne Boyarsky, Scott Selikoff

Publisher

Sybex

Publication Date

2024

ISBN

9781394286614

Number of Pages

1436

Language

English

Format

PDF

File Size

8.6MB

Subject

Java Certification & Professional Java Programming

Table of Contents

  • Cover
  • Table of Contents
  • Title Page
  • Copyright
  • Dedication
  • Acknowledgments
  • About the Authors
  • About the Technical Editor
  • Introduction
  • 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
  • Summary
  • Exam Essentials
  • Review Questions
  • Chapter 7: Beyond Classes
  • Implementing Interfaces
  • Working with Enums
  • Sealing Classes
  • Encapsulating Data with Records
  • Creating Nested Classes
  • Understanding Polymorphism
  • Summary
  • Exam Essentials
  • Review Questions
  • Chapter 8: Lambdas and Functional Interfaces
  • Writing Simple Lambdas
  • Coding Functional Interfaces
  • Using Method References
  • Working with Built-in Functional Interfaces
  • Working with Variables in Lambdas
  • Summary
  • Exam Essentials
  • Review Questions
  • Chapter 9: Collections and Generics
  • Using Common Collection APIs
  • Using the List Interface
  • Using the Set Interface
  • Using the Queue and Deque Interfaces
  • Using the Map Interface
  • Sorting Data
  • Introducing Sequenced Collections
  • Reviewing Collection Types
  • Working with Generics
  • Summary
  • Exam Essentials
  • Review Questions
  • Chapter 10: Streams
  • Returning an Optional
  • Using Streams
  • Working with Primitive Streams
  • Working with Advanced Stream Pipeline Concepts
  • Summary
  • Exam Essentials
  • Review Questions
  • Chapter 11: Exceptions and Localization
  • Understanding Exceptions
  • Recognizing Exception Classes
  • Handling Exceptions
  • Automating Resource Management
  • Formatting Values
  • Supporting Internationalization and Localization
  • Loading Properties with Resource Bundles
  • Summary
  • Exam Essentials
  • Review Questions
  • Chapter 12: Modules
  • Introducing Modules
  • Creating and Running a Modular Program
  • Updating Our Example for Multiple Modules
  • Diving into the Module Declaration
  • Creating a Service
  • Discovering Modules
  • Comparing Types of Modules
  • Migrating an Application
  • Summary
  • Exam Essentials
  • Review Questions
  • Chapter 13: Concurrency
  • Introducing Threads
  • Creating Threads with the Concurrency API
  • Writing Thread-Safe Code
  • Using Concurrent Collections
  • Identifying Threading Problems
  • Working with Parallel Streams
  • Summary
  • Exam Essentials
  • Review Questions
  • Chapter 14: I/O
  • Referencing Files and Directories
  • Operating on File and Path
  • Introducing I/O Streams
  • Reading and Writing Files
  • Serializing Data
  • Interacting with Users
  • Working with Advanced APIs
  • Review of Key APIs
  • Summary
  • Exam Essentials
  • Review Questions
  • Appendix: Answers to Review Questions
  • Index
  • End User License Agreement