HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
PDF The popular standard, used most often with the free Acrobat® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
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
Please visit the author's site at http://www.ii.uib.no/~khalid/ocajp8/index.html.
Download the sample pages (includes Chapter 3 and Index)
Figures xix
Tables xxi
Examples xxiii
Foreword xxvii
Preface xxix
Chapter 1: Basics of Java Programming 1
1.1 Introduction 2
1.2 Classes 2
1.3 Objects 4
1.4 Instance Members 6
1.5 Static Members 7
1.6 Inheritance 10
1.7 Associations: Aggregation and Composition 12
1.8 Tenets of Java 13
1.9 Java Programs 15
1.10 Sample Java Application 16
1.11 Program Output 18
1.12 The Java Ecosystem 21
Chapter 2: Language Fundamentals 27
2.1 Basic Language Elements 28
2.2 Primitive Data Types 37
2.3 Variable Declarations 40
2.4 Initial Values for Variables 42
Chapter 3: Declarations 47
3.1 Class Declarations 48
3.2 Method Declarations 49
3.3 Constructors 53
3.4 Arrays 58
3.5 Parameter Passing 72
3.6 Variable Arity Methods 81
3.7 The main() Method 85
3.8 Enumerated Types 87
Chapter 4: Access Control 95
4.1 Java Source File Structure 96
4.2 Packages 97
4.3 Searching for Classes 107
4.4 Scope Rules 114
4.5 Accessibility Modifiers for Top-Level Type Declarations 118
4.6 Non-Accessibility Modifiers for Classes 120
4.7 Member Accessibility Modifiers 123
4.8 Non-Accessibility Modifiers for Members 131
Chapter 5: Operators and Expressions 143
5.1 Conversions 144
5.2 Type Conversion Contexts 147
5.3 Precedence and Associativity Rules for Operators 150
5.4 Evaluation Order of Operands 152
5.5 Representing Integers 154
5.6 The Simple Assignment Operator = 158
5.7 Arithmetic Operators: *, /, %, +, - 163
5.8 The Binary String Concatenation Operator + 174
5.9 Variable Increment and Decrement Operators: ++, -- 176
5.10 Boolean Expressions 180
5.11 Relational Operators: <, <=, >, >= 180
5.12 Equality 181
5.13 Boolean Logical Operators: !, ^, &, | 184
5.14 Conditional Operators: &&, || 186
5.15 Integer Bitwise Operators: ~, &, |, ^ 189
5.16 The Conditional Operator: ?: 194
5.17 Other Operators: new, [], instanceof, -> 195
Chapter 6: Control Flow 199
6.1 Overview of Control Flow Statements 200
6.2 Selection Statements 200