Sams Teach Yourself Java 6 in 21 Days

by ;
Edition: 5th
Format: Paperback
Pub. Date: 2007-05-25
Publisher(s): Sams Publishing
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $52.49

Rent Book

Select for Price
There was a problem. Please try again later.

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

The thoroughly revised and expanded edition of one of the best selling Java tutorials.

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 Organizedp. 2
Who Should Read This Bookp. 4
Conventions Used in This Bookp. 5
The Java Language
Getting Started with Javap. 9
The Java Languagep. 10
History of the Languagep. 10
Introduction to Javap. 11
Selecting a Development Toolp. 11
Object-Oriented Programmingp. 12
Objects and Classesp. 14
Attributes and Behaviorp. 17
Attributes of a Class of Objectsp. 17
Behavior of a Class of Objectsp. 18
Creating a Classp. 19
Running the Programp. 21
Organizing Classes and Class Behaviorp. 24
Inheritancep. 24
Creating a Class Hierarchyp. 26
Inheritance in Actionp. 28
Single and Multiple Inheritancep. 29
Interfacesp. 30
Packagesp. 30
Summaryp. 31
Q&Ap. 31
Quizp. 32
Questionsp. 32
Answersp. 32
Certification Practicep. 32
Exercisesp. 33
The ABCs of Programmingp. 35
Statements and Expressionsp. 36
Variables and Data Typesp. 36
Creating Variablesp. 37
Naming Variablesp. 39
Variable Typesp. 39
Assigning Values to Variablesp. 41
Constantsp. 41
Commentsp. 43
Literalsp. 44
Number Literalsp. 45
Boolean Literalsp. 46
Character Literalsp. 46
String Literalsp. 47
Expressions and Operatorsp. 48
Arithmeticp. 49
More About Assignmentp. 51
Incrementing and Decrementingp. 52
Comparisonsp. 53Logical Op
Operator Precedencep. 55
String Arithmeticp. 57
Summaryp. 58
Q&Ap. 59
Quizp. 60
Questionsp. 60
Answersp. 60
Certification Practicep. 60
Exercisesp. 61
Working with Objectsp. 63
Creating New Objectsp. 64
Using newp. 64
What new Doesp. 66
A Note on Memory Managementp. 66
Accessing and Setting Class and Instance Variablesp. 67
Getting Valuesp. 67
Changing Valuesp. 68
Class Variablesp. 69
Calling Methodsp. 70
Nesting Method Callsp. 72
Class Methodsp. 73
References to Objectsp. 74
Casting and Converting Objects and Primitive Typesp. 76
Casting Primitive Typesp. 77
Casting Objectsp. 78
Converting Primitive Types to Objects and Vice Versap. 80
Comparing Object Values and Classesp. 82
Comparing Objectsp. 82
Determining the Class of an Objectp. 84
Summaryp. 84
Q&Ap. 85
Quizp. 86
Questionsp. 86
Answersp. 86
Certification Practicep. 86
Exercisesp. 87
Lists, Logic, and Loopsp. 89
Arraysp. 90
Declaring Array Variablesp. 90
Creating Array Objectsp. 91
Accessing Array Elementsp. 92
Changing Array Elementsp. 93
Multidimensional Arraysp. 95
Block Statementsp. 96
If Conditionalsp. 97
Switch Conditionalsp. 98
For Loopsp. 104
While and do Loopsp. 107
While Loopsp. 107
Do-while Loopsp. 109
Breaking Out of Loopsp. 109
Labeled Loopsp. 110
The Conditional Operatorp. 110
Summaryp. 112
Q&Ap. 112
Quizp. 112
Questionsp. 112
Answersp. 113
Certification Practicep. 113
Exercisesp. 114
Creating Classes and Methodsp. 115
Defining Classesp. 116
Creating Instance and Class Variablesp. 116
Defining Instance Variablesp. 116
Class Variablesp. 117
Creating Methodsp. 117
Defining Methodsp. 118
The this Keywordp. 120
Variable Scope and Method Definitionsp. 121
Passing Arguments to Methodsp. 122
Class Methodsp. 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.