Book description
A complete update to the definitive, bestselling guide to the #1 certification for Java programmers
- Written and revised by the co-developers of the original SCJP exam and now published in the Oracle Press brand
- Includes two complete practice exams—250+ practice exam questions in book and via electronic content
- Replaces SCJP Sun Certified Programmer for Java Study Guide—150,000 copies sold
Table of contents
- Cover
- Title Page
- Copyright Page
- Dedication
- Contents
- Contributors
- Acknowledgments
- Preface
- Introduction
-
Part I OCA and OCP
-
1 Declarations and Access Control
- Java Refresher
- Identifiers and Keywords (OCA Objectives 1.2 and 2.1)
- Define Classes (OCA Objectives 1.2, 1.3, 1.4, 6.6, and 7.6)
- Use Interfaces (OCA Objective 7.6)
- Declare Class Members (OCA Objectives 2.1, 2.2, 2.3, 2.4, 2.5, 4.1, 4.2, 6.2, and 6.6)
- Declare and Use enums (OCA Objective 1.2 and OCP Objective 2.5)
- Q&A Self Test
-
2 Object Orientation
- Encapsulation (OCA Objectives 6.1 and 6.7)
- Inheritance and Polymorphism (OCA Objectives 7.1, 7.2, and 7.3)
- Polymorphism (OCA Objectives 7.2 and 7.3)
- Overriding / Overloading (OCA Objectives 6.1, 6.3, 7.2, and 7.3)
- Casting (OCA Objectives 7.3 and 7.4)
- Implementing an Interface (OCA Objective 7.6)
- Legal Return Types (OCA Objectives 2.2, 2.5, 6.1, and 6.3)
- Constructors and Instantiation (OCA Objectives 6.4, 6.5, and 7.5)
- Statics (OCA Objective 6.2)
- Q&A Self Test
-
3 Assignments
- Stack and Heap—Quick Review
- Literals, Assignments, and Variables (OCA Objectives 2.1, 2.2, 2.3, and Upgrade Objective 1.2)
- Scope (OCA Objectives 1.1 and 2.5)
- Variable Initialization (OCA Objective 2.1)
- Passing Variables into Methods (OCA Objective 6.8)
- Garbage Collection (OCA Objective 2.4)
- Q&A Self Test
- 4 Operators
- 5 Working with Strings, Arrays, and ArrayLists
-
6 Flow Control and Exceptions
- Using if and switch Statements (OCA Objectives 3.4 and 3.5—also Upgrade Objective 1.1)
- Exercise 6-1: Creating a switch-case Statement
- Creating Loops Constructs (OCA Objectives 5.1, 5.2, 5.3, 5.4, and 5.5)
- Exercise 6-2: Creating a Labeled while Loop
- Handling Exceptions (OCA Objectives 8.1, 8.2, 8.3, and 8.4)
- Exercise 6-3: Propagating and Catching an Exception
- Common Exceptions and Errors (OCA Objective 8.5)
- Q&A Self Test
-
1 Declarations and Access Control
-
Part II OCP
- 7 Assertions and Java 7 Exceptions
- 8 String Processing, Data Formatting, Resource Bundles
-
9 I/O and NIO
- File Navigation and I/O (OCP Objectives 7.1 and 7.2)
- Files, Path, and Paths (OCP Objectives 8.1 and 8.2)
- File and Directory Attributes (OCP Objective 8.3)
- DirectoryStream (OCP Objective 8.4)
- FileVisitor (OCP Objective 8.4)
- PathMatcher (OCP Objective 8.5)
- WatchService (OCP Objective 8.6)
- Serialization (Objective 7.2)
- Q&A Self Test
- 10 Advanced OO and Design Patterns
-
11 Generics and Collections
- toString(), hashCode(), and equals() (OCP Objectives 4.7 and 4.8)
- Collections Overview (OCP Objectives 4.5 and 4.6)
-
Using Collections (OCP Objectives 4.2, 4.4, 4.5, 4.6, 4.7, and 4.8)
- ArrayList Basics
- Autoboxing with Collections
- The Java 7 “Diamond” Syntax
- Sorting Collections and Arrays
- Navigating (Searching) TreeSets and TreeMaps
- Other Navigation Methods
- Backed Collections
- Using the PriorityQueue Class and the Deque Interface
- Method Overview for Arrays and Collections
- Method Overview for List, Set, Map, and Queue
- Generic Types (OCP Objectives 4.1 and 4.3)
- Q&A Self Test
- 12 Inner Classes
- 13 Threads
-
14 Concurrency
- Concurrency with the java.util.concurrent Package
- Apply Atomic Variables and Locks (OCP Objective 11.2)
- Use java.util.concurrent Collections (OCP Objective 11.1) and Use a Deque (OCP Objective 4.5)
- Use Executors and ThreadPools (OCP Objective 11.3)
- Use the Parallel Fork/Join Framework (OCP Objective 11.4)
- Q&A Self Test
-
15 JDBC
- Starting Out: Introduction to Databases and JDBC
- Core Interfaces of the JDBC API (OCP Objective 9.1)
- Connect to a Database Using DriverManager (OCP Objective 9.2)
- Submit Queries and Read Results from the Database (OCP Objective 9.3)
- Use PreparedStatement and CallableStatement Objects (OCP Objective 9.6)
- Construct and Use RowSet Objects (OCP Objective 9.5)
- JDBC Transactions (OCP Objective 9.4)
- Q&A Self Test
- Appendix A Serialization
- Appendix B Classpaths and JARs
- Appendix C About the Download
- Index
Product information
- Title: OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804)
- Author(s):
- Release date: October 2014
- Publisher(s): Oracle Press
- ISBN: 9780071771993
You might also like
book
SCJP Sun Certified Programmer for Java 6 Study Guide
The Best Fully Integrated Study System Available--Written by the Lead Developers of Exam 310-065 With hundreds …
book
Running Applications on Oracle Exadata
Maximize Application Performance on Oracle Exadata Written by an enterprise architect specializing in applications on Oracle's …
book
Programming for the Java™ Virtual Machine
The core of Java technology, the Java virtual machine is an abstract computing machine that enables …
book
EJB 3 in Action, Second Edition
Building on the bestselling first edition, EJB 3 in Action, Second Edition tackles EJB 3.2 head-on, …