Introduction xxix
Assessment Tests lix
Part I Exam 1Z0-815, OCP Java SE 11 Programmer I 1
Chapter 1 Welcome to Java 3
Chapter 2 Java Building Blocks 37
Chapter 3 Operators 81
Chapter 4 Making Decisions 115
Chapter 5 Core Java APIs 163
Chapter 6 Lambdas and Functional Interfaces 223
Chapter 7 Methods and Encapsulation 249
Chapter 8 Class Design 297
Chapter 9 Advanced Class Design 365
Chapter 10 Exceptions 403
Chapter 11 Modules 453
Part II Exam 1Z0-816, OCP Java SE 11 Programmer II Exam 1Z0-817, Upgrade OCP Java SE 11 493
Chapter 12 Java Fundamentals 495
Chapter 13 Annotations 553
Chapter 14 Generics and Collections 599
Chapter 15 Functional Programming 669
Chapter 16 Exceptions, Assertions, and Localization 741
Chapter 17 Modular Applications 803
Chapter 18 Concurrency 839
Chapter 19 I/O 913
Chapter 20 NIO.2 969
Chapter 21 JDBC 1023
Chapter 22 Security 1069
Appendix Answers to Review Questions 1105
Index 1177