1
, 2
Summary Complete Solutions Manual: Java
How To Program (Early Objects), Deitel, 10e
[2026 Update] — Advanced Examination
Question Bank V2.0
TABLE OF CONTENTS
Section Topic Area Questions
I Java Foundations & Early Objects 1–25
Chapter 1: Introduction to Computers, the Internet and Java 1–5
Chapter 2: Introduction to Java Applications; Input/Output and Operators 6–12
Chapter 3: Introduction to Classes, Objects, Methods and Strings 13–20
Chapter 4: Control Statements: Part 1 21–25
II Control Flow, Methods & Arrays 26–55
Chapter 5: Control Statements: Part 2; Logical Operators 26–32
Chapter 6: Methods: A Deeper Look 33–42
Chapter 7: Arrays and ArrayLists 43–50
, 3
Section Topic Area Questions
Chapter 8: Classes and Objects: A Deeper Look 51–55
III Object-Oriented Programming 56–85
Chapter 9: Object-Oriented Programming: Inheritance 56–63
Chapter 10: Object-Oriented Programming: Polymorphism and Interfaces 64–72
Chapter 11: Exception Handling: A Deeper Look 73–80
Chapter 12–13: GUI Components, Graphics and Java 2D 81–85
IV Strings, Files & Collections 86–115
Chapter 14: Strings, Characters and Regular Expressions 86–93
Chapter 15: Files, Streams and Object Serialization 94–100
Chapter 16: Generic Collections 101–108
Chapter 17: Java SE 8 Lambdas and Streams 109–115
V Advanced Topics & Applications 116–150
Chapter 18: Recursion 116–122
Chapter 19: Searching, Sorting and Big O 123–128
Chapter 20–21: Generic Classes, Methods & Custom Data Structures 129–135
, 4
Section Topic Area Questions
Chapter 22–23: GUI Components: Part 2 & Concurrency 136–142
Chapter 24: Accessing Databases with JDBC 143–147
Chapter 25–34: JavaFX, Networking, JPA, Web Services, ATM Case Study 148–150
SECTION I: JAVA FOUNDATIONS & EARLY OBJECTS
Chapter 1: Introduction to Computers, the Internet and Java
1. In the context of the Java ecosystem, which statement most accurately characterizes the
relationship between the Java Development Kit (JDK), the Java Runtime Environment (JRE), and
the Java Virtual Machine (JVM)?
A) The JDK contains the JRE, which in turn contains the JVM, and all three are required to
execute any Java program.
B) The JVM is a subset of the JDK, while the JRE is a standalone component that can execute
Java bytecode without the JDK.
C) The JRE provides the libraries and the JVM for running Java applications, while the
JDK additionally includes development tools such as the compiler and debugger.
D) The JVM and JRE are synonymous terms referring to the same runtime environment.
Rationale: The JRE (Java Runtime Environment) provides the libraries, the JVM, and other
components to run Java applications. The JDK (Java Development Kit) includes the JRE plus
development tools like javac (compiler), jar, and javadoc.
2. Which of the following correctly describes the progression from source code to
executable program in the Java development process?
A) Source code → Machine code → Bytecode → Execution
B) Source code → Assembly code → Bytecode → Execution
C) Source code (.java) → Compilation → Bytecode (.class) → JVM interpretation/JIT
, 2
Summary Complete Solutions Manual: Java
How To Program (Early Objects), Deitel, 10e
[2026 Update] — Advanced Examination
Question Bank V2.0
TABLE OF CONTENTS
Section Topic Area Questions
I Java Foundations & Early Objects 1–25
Chapter 1: Introduction to Computers, the Internet and Java 1–5
Chapter 2: Introduction to Java Applications; Input/Output and Operators 6–12
Chapter 3: Introduction to Classes, Objects, Methods and Strings 13–20
Chapter 4: Control Statements: Part 1 21–25
II Control Flow, Methods & Arrays 26–55
Chapter 5: Control Statements: Part 2; Logical Operators 26–32
Chapter 6: Methods: A Deeper Look 33–42
Chapter 7: Arrays and ArrayLists 43–50
, 3
Section Topic Area Questions
Chapter 8: Classes and Objects: A Deeper Look 51–55
III Object-Oriented Programming 56–85
Chapter 9: Object-Oriented Programming: Inheritance 56–63
Chapter 10: Object-Oriented Programming: Polymorphism and Interfaces 64–72
Chapter 11: Exception Handling: A Deeper Look 73–80
Chapter 12–13: GUI Components, Graphics and Java 2D 81–85
IV Strings, Files & Collections 86–115
Chapter 14: Strings, Characters and Regular Expressions 86–93
Chapter 15: Files, Streams and Object Serialization 94–100
Chapter 16: Generic Collections 101–108
Chapter 17: Java SE 8 Lambdas and Streams 109–115
V Advanced Topics & Applications 116–150
Chapter 18: Recursion 116–122
Chapter 19: Searching, Sorting and Big O 123–128
Chapter 20–21: Generic Classes, Methods & Custom Data Structures 129–135
, 4
Section Topic Area Questions
Chapter 22–23: GUI Components: Part 2 & Concurrency 136–142
Chapter 24: Accessing Databases with JDBC 143–147
Chapter 25–34: JavaFX, Networking, JPA, Web Services, ATM Case Study 148–150
SECTION I: JAVA FOUNDATIONS & EARLY OBJECTS
Chapter 1: Introduction to Computers, the Internet and Java
1. In the context of the Java ecosystem, which statement most accurately characterizes the
relationship between the Java Development Kit (JDK), the Java Runtime Environment (JRE), and
the Java Virtual Machine (JVM)?
A) The JDK contains the JRE, which in turn contains the JVM, and all three are required to
execute any Java program.
B) The JVM is a subset of the JDK, while the JRE is a standalone component that can execute
Java bytecode without the JDK.
C) The JRE provides the libraries and the JVM for running Java applications, while the
JDK additionally includes development tools such as the compiler and debugger.
D) The JVM and JRE are synonymous terms referring to the same runtime environment.
Rationale: The JRE (Java Runtime Environment) provides the libraries, the JVM, and other
components to run Java applications. The JDK (Java Development Kit) includes the JRE plus
development tools like javac (compiler), jar, and javadoc.
2. Which of the following correctly describes the progression from source code to
executable program in the Java development process?
A) Source code → Machine code → Bytecode → Execution
B) Source code → Assembly code → Bytecode → Execution
C) Source code (.java) → Compilation → Bytecode (.class) → JVM interpretation/JIT