text.skipToContent text.skipToNavigation
  1. Home
  2. Computer Science & IT
  3. Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA), A

Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA), A, 1st edition

  • Khalid A. Mughal
  • Rolf W Rasmussen

Published by Addison-Wesley Professional (July 20th 2016) - Copyright © 2017

1st edition

Chosen format
View all
Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA), A

ISBN-13: 9780132943123

Includes: Instant Access

This product is not available in your country

What's included

  • Instant Access

    You'll get instant access to the digital content.

Overview

Table of contents

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

For teachers

All the material you need to teach your courses.

Discover teaching material