10 Chapter 9TABLE 9.1 Factory methods to create a List
TABLE 9.2 List
methodsTABLE 9.3 Queue
methodsTABLE 9.4 Deque
methodsTABLE 9.5 Using a Deque
as a stackTABLE 9.6 Map
methodsTABLE 9.7 Behavior of the merge()
methodTABLE 9.8 Java Collections Framework typesTABLE 9.9 Collection attributesTABLE 9.10 Comparison of Comparable
and Comparator
TABLE 9.11 Helper static methods for building a Comparator
TABLE 9.12 Helper default methods for building a Comparator
TABLE 9.13 Types of boundsTABLE 9.14 Why we need a lower bound
11 Chapter 10TABLE 10.1 Common Optional
instance methodsTABLE 10.2 Intermediate vs. terminal operationsTABLE 10.3 Creating a sourceTABLE 10.4 Terminal stream operationsTABLE 10.5 Common primitive stream methodsTABLE 10.6 Mapping methods between types of streamsTABLE 10.7 Function parameters when mapping between types of streamsTABLE 10.8 Optional types for primitivesTABLE 10.9 Spliterator
methodsTABLE 10.10 Examples of grouping/partitioning collectors
12 Chapter 11TABLE 11.1 Types of exceptions and errorsTABLE 11.2 Unchecked exceptionsTABLE 11.3 Checked exceptionsTABLE 11.4 ErrorsTABLE 11.5 DecimalFormat
symbolsTABLE 11.6 Common date/time symbolsTABLE 11.7 Supported date/time symbolsTABLE 11.8 Factory methods to get a NumberFormat
TABLE 11.9 Factory methods to get a DateTimeFormatter
TABLE 11.10 Locale.Category
valuesTABLE 11.11 Picking a resource bundle for French/France with default locale ...TABLE 11.12 Selecting resource bundle properties
13 Chapter 12TABLE 12.1 Options you need to know for using modules with javac
TABLE 12.2 Options you need to know for using modules with java
TABLE 12.3 Access control with modulesTABLE 12.4 Reviewing servicesTABLE 12.5 Reviewing directivesTABLE 12.6 Common modulesTABLE 12.7 Java modules prefixed with java
TABLE 12.8 Java modules prefixed with jdk
TABLE 12.9 Modes using jmod
TABLE 12.10 Comparing command-line operationsTABLE 12.11 Options you need to know for the exam: javac
TABLE 12.12 Options you need to know for the exam: java
TABLE 12.13 Options you need to know for the exam: jar
TABLE 12.14 Options you need to know for the exam: jdeps
TABLE 12.15 Options you need to know for the exam: jlink
TABLE 12.16 Practicing with automatic module namesTABLE 12.17 Properties of module typesTABLE 12.18 Comparing migration strategies
14 Chapter 13TABLE 13.1 ExecutorService
methodsTABLE 13.2 Future
methodsTABLE 13.3 TimeUnit
valuesTABLE 13.4 ScheduledExecutorService
methodsTABLE 13.5 Executors
factory methodsTABLE 13.6 Atomic classesTABLE 13.7 Common atomic methodsTABLE 13.8 Lock
methodsTABLE 13.9 Concurrent collection classesTABLE 13.10 Synchronized Collections
methods
15 Chapter 14TABLE 14.1 File-system symbolsTABLE 14.2 Options for creating File
and Path
TABLE 14.3 Common File
and Path
operationsTABLE 14.4 Common File
and Files
operationsTABLE 14.5 Common NIO.2 method argumentsTABLE 14.6 Path
APIsTABLE 14.7 The java.io
abstract stream base classesTABLE 14.8 The java.io
concrete I/O stream classesTABLE 14.9 Common I/O read and write methodsTABLE 14.10 Common Files
NIO.2 read and write methodsTABLE 14.11 Common I/O stream methodsTABLE 14.12 The attributes and view typesTABLE 14.13 Walking a directory with a cycle using breadth-first searchTABLE 14.14 Key APIs
16 Chapter 15TABLE 15.1 CRUD operationsTABLE 15.2 SQLTABLE 15.3 SQL runnable by the execute
methodTABLE 15.4 Return types of execute
methodsTABLE 15.5 PreparedStatement
methodsTABLE 15.6 ResultSet get
methodsTABLE 15.7 Sample stored proceduresTABLE 15.8 Stored procedure parameter typesTABLE 15.9 Connection
APIs for transactions
List of Illustrations
1 Chapter 1FIGURE 1.1 Compiling with packagesFIGURE 1.2 Compiling with packages and directoriesFIGURE 1.3 Text blockFIGURE 1.4 Your drawing after line 5FIGURE 1.5 Your drawing after line 7
2 Chapter 2FIGURE 2.1 Java operationFIGURE 2.2 The logical truth tables for &
, |
, and ^
3 Chapter 3FIGURE 3.1 The structure of an if
statementFIGURE 3.2 The structure of an else
statementFIGURE 3.3 The structure of a switch
statementFIGURE 3.4 The structure of a switch
expressionFIGURE 3.5 The structure of a while
statementFIGURE 3.6 The structure of a do
/while
statementFIGURE 3.7 The structure of a basic for
loopFIGURE 3.8 The structure of an enhanced for-each loopFIGURE 3.9 The structure of a break
statementFIGURE 3.10 The structure of a continue
statement
4 Chapter 4FIGURE 4.1 Indexing for a stringFIGURE 4.2 Indexes for a substringFIGURE 4.3 The basic structure of an arrayFIGURE 4.4 An empty arrayFIGURE 4.5 An initialized arrayFIGURE 4.6 An array pointing to stringsFIGURE 4.7 A sparsely populated multidimensional arrayFIGURE 4.8 An asymmetric multidimensional arrayFIGURE 4.9 Period formatFIGURE 4.10 How daylight saving time works
5 Chapter 5FIGURE 5.1 Method declarationFIGURE 5.2 Classes used to show private
and package accessFIGURE 5.3 Classes used to show protected accessFIGURE 5.4 Copying a reference with pass-by-value
6 Chapter 6FIGURE 6.1 Subclass and superclass declarationsFIGURE 6.2 Types of inheritanceFIGURE 6.3 Java object inheritance
7 Chapter 7FIGURE 7.1 Defining an interfaceFIGURE 7.2 Implementing an interfaceFIGURE 7.3 Interface InheritanceFIGURE 7.4 Defining a simple enumFIGURE 7.5 Defining a sealed classFIGURE 7.6 Defining a recordFIGURE 7.7 Declaring a compact constructorFIGURE 7.8 Object vs. reference
8 Chapter 8FIGURE 8.1 Lambda syntax omitting optional partsFIGURE 8.2 Lambda syntax including optional parts
9 Chapter 9FIGURE 9.1 Java Collections FrameworkFIGURE 9.2 Example of a List
FIGURE 9.3 Example of a Set
FIGURE 9.4 Examples of a HashSet
and TreeSet
FIGURE 9.5 Example of a Deque
FIGURE 9.6 Working with a Deque
FIGURE 9.7 Working with a stackFIGURE 9.8 Example of a Map
10 Chapter 10FIGURE 10.1 Optional
FIGURE 10.2 Stream pipelineFIGURE 10.3 Steps in running a stream pipelineFIGURE 10.4 A stream pipeline with a limitFIGURE 10.5 Stream pipeline with multiple intermediate operations
11 Chapter 11FIGURE 11.1 Categories of exceptionFIGURE 11.2 The syntax of a try
statementFIGURE 11.3 The syntax of a multi-catch blockFIGURE 11.4 The syntax of a try
statement with finally
FIGURE 11.5 The syntax of a basic try-with-resources statementFIGURE 11.6 Locale
formats
12 Chapter 12FIGURE 12.1 Design of a modular systemFIGURE