Description
Book SynopsisTable of ContentsIntroduction ix
Part I OCA 1
Chapter 1 Java Basics 3
Chapter 2 Working with Java Data Types 17
Chapter 3 Using Operators and Decision Constructs 33
Chapter 4 Creating and Using Arrays 49
Chapter 5 Using Loop Constructs 63
Chapter 6 Working with Methods and Encapsulation 79
Chapter 7 Working with Inheritance 97
Chapter 8 Handling Exceptions 115
Chapter 9 Working with Selected Classes from the Java API 135
Chapter 10 OCA Practice Exam 151
Part II OCP 185
Chapter 11 Java Class Design 187
Chapter 12 Advanced Java Class Design 205
Chapter 13 Generics and Collections 223
Chapter 14 Lambda Built-in Functional Interfaces 239
Chapter 15 Java Stream API 255
Chapter 16 Exceptions and Assertions 271
Chapter 17 Use Java SE 8 Date/Time API 289
Chapter 18 Java I/O Fundamentals 301
Chapter 19 Java File I/O (NIO.2) 319
Chapter 20 Java Concurrency 337
Chapter 21 Building Database Applications with JDBC 357
Chapter 22 Localization 371
Chapter 23 OCP Practice Exam 385
Appendix Answers to Review Questions 427
Index 565