
Sams Teach Yourself Java 6 in 21 Days
by Cadenhead, Rogers; Lemay, Laura-
This Item Qualifies for Free Shipping!*
*Excludes marketplace orders.
Rent Book
New Book
We're Sorry
Sold Out
Used Book
We're Sorry
Sold Out
eBook
We're Sorry
Not Available
How Marketplace Works:
- This item is offered by an independent seller and not shipped from our warehouse
- Item details like edition and cover design may differ from our description; see seller's comments before ordering.
- Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
- Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
- Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.
Summary
Author Biography
Rogers Cadenhead is a web application developer and author. He has written 22 books on Internet-related topics, including Sams Teach Yourself Java in 24 Hours. He’s also a web publisher whose sites receive more than 24 million visits per year. He maintains this book’s official website at http://www.java21days.com and a personal weblog at http://www.cadenhead.org.
Laura Lemay is a technical writer and author. After spending six years writing software documentation for various computer companies in Silicon Valley, she decided that writing books would be much more fun. In her spare time, she collects computers, email addresses, interesting hair colors, and nonrunning motorcycles. She is also the perpetrator of Sams Teach Yourself Web Publishing with HTML in a Week and Sams Teach Yourself Perl in 21 Days and a personal weblog at http://blog.lauralemay.com.
Table of Contents
Introduction 1 | |
How This Book Is Organized | p. 2 |
Who Should Read This Book | p. 4 |
Conventions Used in This Book | p. 5 |
The Java Language | |
Getting Started with Java | p. 9 |
The Java Language | p. 10 |
History of the Language | p. 10 |
Introduction to Java | p. 11 |
Selecting a Development Tool | p. 11 |
Object-Oriented Programming | p. 12 |
Objects and Classes | p. 14 |
Attributes and Behavior | p. 17 |
Attributes of a Class of Objects | p. 17 |
Behavior of a Class of Objects | p. 18 |
Creating a Class | p. 19 |
Running the Program | p. 21 |
Organizing Classes and Class Behavior | p. 24 |
Inheritance | p. 24 |
Creating a Class Hierarchy | p. 26 |
Inheritance in Action | p. 28 |
Single and Multiple Inheritance | p. 29 |
Interfaces | p. 30 |
Packages | p. 30 |
Summary | p. 31 |
Q&A | p. 31 |
Quiz | p. 32 |
Questions | p. 32 |
Answers | p. 32 |
Certification Practice | p. 32 |
Exercises | p. 33 |
The ABCs of Programming | p. 35 |
Statements and Expressions | p. 36 |
Variables and Data Types | p. 36 |
Creating Variables | p. 37 |
Naming Variables | p. 39 |
Variable Types | p. 39 |
Assigning Values to Variables | p. 41 |
Constants | p. 41 |
Comments | p. 43 |
Literals | p. 44 |
Number Literals | p. 45 |
Boolean Literals | p. 46 |
Character Literals | p. 46 |
String Literals | p. 47 |
Expressions and Operators | p. 48 |
Arithmetic | p. 49 |
More About Assignment | p. 51 |
Incrementing and Decrementing | p. 52 |
Comparisons | p. 53Logical Op |
Operator Precedence | p. 55 |
String Arithmetic | p. 57 |
Summary | p. 58 |
Q&A | p. 59 |
Quiz | p. 60 |
Questions | p. 60 |
Answers | p. 60 |
Certification Practice | p. 60 |
Exercises | p. 61 |
Working with Objects | p. 63 |
Creating New Objects | p. 64 |
Using new | p. 64 |
What new Does | p. 66 |
A Note on Memory Management | p. 66 |
Accessing and Setting Class and Instance Variables | p. 67 |
Getting Values | p. 67 |
Changing Values | p. 68 |
Class Variables | p. 69 |
Calling Methods | p. 70 |
Nesting Method Calls | p. 72 |
Class Methods | p. 73 |
References to Objects | p. 74 |
Casting and Converting Objects and Primitive Types | p. 76 |
Casting Primitive Types | p. 77 |
Casting Objects | p. 78 |
Converting Primitive Types to Objects and Vice Versa | p. 80 |
Comparing Object Values and Classes | p. 82 |
Comparing Objects | p. 82 |
Determining the Class of an Object | p. 84 |
Summary | p. 84 |
Q&A | p. 85 |
Quiz | p. 86 |
Questions | p. 86 |
Answers | p. 86 |
Certification Practice | p. 86 |
Exercises | p. 87 |
Lists, Logic, and Loops | p. 89 |
Arrays | p. 90 |
Declaring Array Variables | p. 90 |
Creating Array Objects | p. 91 |
Accessing Array Elements | p. 92 |
Changing Array Elements | p. 93 |
Multidimensional Arrays | p. 95 |
Block Statements | p. 96 |
If Conditionals | p. 97 |
Switch Conditionals | p. 98 |
For Loops | p. 104 |
While and do Loops | p. 107 |
While Loops | p. 107 |
Do-while Loops | p. 109 |
Breaking Out of Loops | p. 109 |
Labeled Loops | p. 110 |
The Conditional Operator | p. 110 |
Summary | p. 112 |
Q&A | p. 112 |
Quiz | p. 112 |
Questions | p. 112 |
Answers | p. 113 |
Certification Practice | p. 113 |
Exercises | p. 114 |
Creating Classes and Methods | p. 115 |
Defining Classes | p. 116 |
Creating Instance and Class Variables | p. 116 |
Defining Instance Variables | p. 116 |
Class Variables | p. 117 |
Creating Methods | p. 117 |
Defining Methods | p. 118 |
The this Keyword | p. 120 |
Variable Scope and Method Definitions | p. 121 |
Passing Arguments to Methods | p. 122 |
Class Methods | p. 123 |
Table of Contents provided by Publisher. All Rights Reserved. |
An electronic version of this book is available through VitalSource.
This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.
By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.
Digital License
You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.
More details can be found here.
A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.
Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.
Please view the compatibility matrix prior to purchase.