did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780672329432

Sams Teach Yourself Java 6 in 21 Days

by ;
  • ISBN13:

    9780672329432

  • ISBN10:

    0672329433

  • Edition: 5th
  • Format: Paperback
  • Copyright: 2007-05-25
  • Publisher: Sams Publishing
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $49.99

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.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program