Java SE 7 Programming Essentials

Java SE 7 Programming Essentials

38,90 €*

Alle Preise inkl. MwSt. | Versandkostenfrei
Artikel-Nr:
9781118359105
Veröffentl:
2012
Seiten:
336
Autor:
Michael Ernest
Gewicht:
770 g
Format:
234x189x20 mm
Serie:
Serious Skills
Sprache:
Englisch
Beschreibung:

Michael Ernest is a technical consultant with over 16 years of experience writing and maintaining Java code. He writes Java-based courseware and contributes content for Oracle's certification exams, as well as leading seminars on Java EE, performance tuning, and adopting Java-based software. He has been a Sheriff on the popular help website coderanch.com since 2000. Ernest coauthored Sybex's The Complete Java 2 Certification Study Guide , and has written several Sun Microsystems and Oracle courses.
Learn core programming concepts and technologies on the leading software development language

This full-color book covers fundamental Java programming concepts and skills for those new to software development and programming. Taking a straightforward and direct approach,Java SE 7 Programming Essentials provides a solid foundational knowledge of programming topics. Each chapter begins with a list of topic areas, and author Michael Ernest provides clear and concise discussion of these core areas. The chapters contain review questions and suggested labs, so the reader can measure their understanding of the chapter topics.
Covers topics such as working with Java data types, using operators and decision constructs, creating and using arrays, and much more
Includes additional learning tutorials and tools
Puts the focus on Oracle's new Oracle Certified Associate (OCA): Java SE 7 Programmer (1Z0-803) exam

This must-have resource offers new programmers a solid understanding of the Java SE 7 programming language.
Learn core programming concepts and technologies on the leading software development language This full-color book covers fundamental Java programming concepts and skills for those new to software development and programming.
Introduction xvii

Chapter 1 Introducing the Basics of Java 1

Understanding Java Class Structure 1

Distinguishing between Classes and Objects 5

Understanding Other Elements of Java Class Structure 6

Writing a main() Method 7

Importing Other Java Classes 10

Understanding Package Declarations 13

Understanding Variable Scope in Java Code 14

Understanding Program State 15

The Essentials and Beyond 16

Chapter 2 Applying Data Types in Java Programming 19

Creating, Using, and Destroying Objects 19

Distinguishing between Object References and Primitives 23

Declaring and Initializing Variables 26

Default Initialization of Variables 30

Reading and Writing Object Fields 32

Using the StringBuilder Class and Its Methods 34

Creating and Manipulating Strings 39

The Essentials and Beyond 42

Chapter 3 Using Java Operators and Conditional Logic 45

Using Java Operators 45

Understanding Operator Types and Properties 48

Precedence and Associativity 50

Using Separators 52

Using Postfix/Prefix Operators 52

Using Unary Operators 53

Using Multiplicative and Additive Operators 55

Using Shift Operators 56

Using Relational Operators 56

Using Equality Operators 57

Using Bitwise and Logical Operators 58

Using Conditional Operators 59

Using Assignment Operators 61

Using Parentheses to Control Operators 62

Understanding Object Equality 64

Using if and if/else Statements 67

Using a switch Statement 69

The Essentials and Beyond 71

Chapter 4 Using Java Arrays 75

Understanding Java Arrays 75

Using a One-Dimensional Array 78

Declaring an Array 78

Instantiating an Array 79

Populating an Array with a Loop 80

Populating an Array without a Loop 81

Using an Array 82

Using a String Object as a Character Array 84

Using System.arraycopy() 85

Using Arrays of Other Types 86

Understanding the Arrays Class 87

Using a Multi-Dimensional Array 87

Declaring a Multi-Dimensional Array 88

Instantiating and Using a Multi-Dimensional Array 88

Using an ArrayList Object 90

Understanding ArrayList Support for Array Features 90

Instantiating an ArrayList Class 92

Consuming the ArrayList API 93

The Essentials and Beyond 94

Chapter 5 Using Loops in Java Code 97

Applying while Loops 97

Choosing a Useful while Test 98

Watching Out for Infinite Loops 100

Applying do/while Loops 102

Applying for and For-Each Loops 103

Using for Loops 104

Nesting Loops 106

Avoiding Useless and Infinite Loops 108

Using For-Each Loops 109

Using the For-Each Loop with a Collections Type 110

Comparing Loop Constructs 112

Using continue and break Statements 112

Using the continue Statement 113

Using the break Statement 114

Using Labeled Statements 115

The Essentials and Beyond 116

Chapter 6 Encapsulating Data and Exposing Methods in Java 119

Encapsulating Data 119

Understanding Data Hiding 120

Hiding the Data 124

Understanding Encapsulation 125

Understanding Mutability 127

Using Final Classes 128

Exposing Data through Methods 129

Understanding the Bean Model 129

Distinguishing Methods from Data in a Class 131

Validating Incoming Parameters 131

Restricting Range 132

Inducing Side Effects 133

Choosing Methods to Make Public 134

Applying Access Modifiers 135

Working with Packaged Classes 137

Using Access Modifiers with Package-Aware Classes 139

Using Default Access with Class Members 140

Understanding the protected Access Modifier 142

Abstracting Data 143

The Essentials and Beyond 144

Chapter 7 Using Java Methods to Communicate 147

Designing Methods 147

Understanding Method Modifiers 148

Choosing Modifiers 149

Choosing Return Types 151

Choosing Parameters 154

Naming Methods 156

Overloading Methods 158

Understanding Method Signatures 159

Supporting Multiple Parameter Lists 160

Allowing for a Variable Numbe
Lieferung vom Verlag mit leichten Qualitätsmängeln möglich

Kunden Rezensionen

Zu diesem Artikel ist noch keine Rezension vorhanden.
Helfen sie anderen Besuchern und verfassen Sie selbst eine Rezension.