Book description
Unique among Java tutorials, A Programmer’s Guide to Java® SE 8 Oracle Certified Associate (OCA): A Comprehensive Primer combines an integrated, expert introduction to Java SE 8 with comprehensive coverage of Oracle’s new Java SE 8 OCA exam 1Z0-808.
Based on Mughal and Rasmussen’s highly regarded guide to the original SCJP Certification, this streamlined volume has been thoroughly revised to reflect major changes in the new Java SE 8 OCA exam. It features an increased focus on analyzing code scenarios and not just individual language constructs, and each exam objective is thoroughly addressed, reflecting the latest Java SE 8 features, API classes, and best practices for effective programming.
Other features include
Summaries that clearly state what topics to read for each objective of the Java SE 8 OCA exam
Dozens of exam-relevant review questions with annotated answers
Programming exercises and solutions to put theory into practice
A mock exam with realistic questions to find out if you are ready to take the official exam
An introduction to essential concepts in object-oriented programming (OOP) and functional-style programming
In-depth coverage of declarations, access control, operators, flow control, OOP techniques, lambda expressions, key API classes, and more
Program output demonstrating expected results from complete Java programs
Advice on avoiding common pitfalls in writing Java code and on taking the certification exam
Extensive use of UML (Unified Modeling Language) for illustration purposes
Table of contents
- About This E-Book
- Title Page
- Copyright Page
- Dedication Page
- Contents Overview
- Contents
- Figures
- Tables
- Examples
- Foreword
- Preface
-
1. Basics of Java Programming
- 1.1 Introduction
- 1.2 Classes
- 1.3 Objects
- 1.4 Instance Members
- 1.5 Static Members
- 1.6 Inheritance
- 1.7 Associations: Aggregation and Composition
- 1.8 Tenets of Java
- Review Questions
- 1.9 Java Programs
- 1.10 Sample Java Application
- 1.11 Program Output
- 1.12 The Java Ecosystem
- Review Questions
- Chapter Summary
- Programming Exercise
- 2. Language Fundamentals
- 3. Declarations
-
4. Access Control
- 4.1 Java Source File Structure
- 4.2 Packages
- 4.3 Searching for Classes
- Review Questions
- 4.4 Scope Rules
- 4.5 Accessibility Modifiers for Top-Level Type Declarations
- 4.6 Non-Accessibility Modifiers for Classes
- Review Questions
- 4.7 Member Accessibility Modifiers
- Review Questions
- 4.8 Non-Accessibility Modifiers for Members
- Review Questions
- Chapter Summary
- Programming Exercise
-
5. Operators and Expressions
- 5.1 Conversions
- 5.2 Type Conversion Contexts
- 5.3 Precedence and Associativity Rules for Operators
- 5.4 Evaluation Order of Operands
- 5.5 Representing Integers
- 5.6 The Simple Assignment Operator =
- Review Questions
-
5.7 Arithmetic Operators: *, /, %, +, -
- Arithmetic Operator Precedence and Associativity
- Evaluation Order in Arithmetic Expressions
- Range of Numeric Values
- Unary Arithmetic Operators: -, +
- Multiplicative Binary Operators: *, /, %
- Additive Binary Operators: +, -
- Numeric Promotions in Arithmetic Expressions
- Arithmetic Compound Assignment Operators: *=, /=, %=, +=, -=
- Review Questions
- 5.8 The Binary String Concatenation Operator +
- 5.9 Variable Increment and Decrement Operators: ++, --
- Review Questions
- 5.10 Boolean Expressions
- 5.11 Relational Operators: <, <=, >, >=
- 5.12 Equality
- 5.13 Boolean Logical Operators: !, ^, &, |
- 5.14 Conditional Operators: &&, ||
- 5.15 Integer Bitwise Operators: ~, &, |, ^
- Review Questions
- 5.16 The Conditional Operator: ?:
- 5.17 Other Operators: new, [], instanceof, ->
- Review Questions
- Chapter Summary
- Programming Exercise
-
6. Control Flow
- 6.1 Overview of Control Flow Statements
- 6.2 Selection Statements
- Review Questions
- 6.3 Iteration Statements
- 6.4 Transfer Statements
- Review Questions
- 6.5 Stack-Based Execution and Exception Propagation
- 6.6 Exception Types
- 6.7 Exception Handling: try, catch, and finally
- 6.8 The throw Statement
- 6.9 The throws Clause
- 6.10 Advantages of Exception Handling
- Review Questions
- Chapter Summary
- Programming Exercises
-
7. Object-Oriented Programming
- 7.1 Single Implementation Inheritance
- 7.2 Overriding Methods
- 7.3 Hiding Members
- 7.4 The Object Reference super
- Review Questions
- 7.5 Chaining Constructors Using this() and super()
- Review Questions
- 7.6 Interfaces
- Review Questions
- 7.7 Arrays and Subtyping
- 7.8 Reference Values and Conversions
- 7.9 Reference Value Assignment Conversions
- 7.10 Method Invocation Conversions Involving References
- 7.11 Reference Casting and the instanceof Operator
- Review Questions
- 7.12 Polymorphism and Dynamic Method Lookup
- 7.13 Inheritance versus Aggregation
- 7.14 Basic Concepts in Object-Oriented Design
- Review Questions
- Chapter Summary
- Programming Exercises
-
8. Fundamental Classes
- 8.1 Overview of the java.lang Package
- 8.2 The Object Class
- Review Questions
- 8.3 The Wrapper Classes
- Review Questions
-
8.4 The String Class
- Immutability
- Creating and Initializing Strings
- The CharSequence Interface
- Reading Characters from a String
- Comparing Strings
- Character Case in a String
- Concatenation of Strings
- Joining of CharSequence Objects
- Searching for Characters and Substrings
- Extracting Substrings
- Converting Primitive Values and Objects to Strings
- Formatted Strings
- Review Questions
- 8.5 The StringBuilder and StringBuffer Classes
- Review Questions
- Chapter Summary
- Programming Exercises
-
9. Object Lifetime
- 9.1 Garbage Collection
- 9.2 Reachable Objects
- 9.3 Facilitating Garbage Collection
- 9.4 Object Finalization
- 9.5 Finalizer Chaining
- 9.6 Invoking Garbage Collection Programmatically
- Review Questions
- 9.7 Initializers
- 9.8 Field Initializer Expressions
- 9.9 Static Initializer Blocks
- 9.10 Instance Initializer Blocks
- 9.11 Constructing Initial Object State
- Review Questions
- Chapter Summary
- 10. The ArrayList<E> Class and Lambda Expressions
- 11. Date and Time
- Appendix A. Taking the Java SE 8 Programmer I Exam
- Appendix B. Exam Topics: Java SE 8 Programmer I
- Appendix C. Annotated Answers to Review Questions
- Appendix D. Solutions to Programming Exercises
- Appendix E. Mock Exam: Java SE 8 Programmer I
- Appendix F. Annotated Answers to Mock Exam I
- Index
- Code Snippets
Product information
- Title: A Programmer’s Guide to Java® SE 8 Oracle Certified Associate (OCA)
- Author(s):
- Release date: July 2016
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780132943093
You might also like
book
OCA Java SE 7 Programmer I Study Guide (Exam 1Z0-803), 2nd Edition
A Proven Study System for Oracle Certified Associate Exam 1Z0-803 Prepare for the Oracle Certified Associate …
book
Java™ Data Objects
Java Data Objects is a standardized Java API for object persistence. It facilitates the storage and …
book
Core Java™ Data Objects
The experienced Java developer's guide to persistence with JDO! Master JDO, the breakthrough technology for persistenting …
book
SCJA Sun Certified Java Associate Study Guide (Exam CX-310-019)
The SCJA certification is for entry-level Java programmers interested in pursuing a career in application development …