did-you-know? rent-now

Rent More, Save More! Use code: ECRENTAL

did-you-know? rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780782143737

JavaTM Foundations

by
  • ISBN13:

    9780782143737

  • ISBN10:

    0782143733

  • Format: Paperback
  • Copyright: 2004-09-01
  • Publisher: Sybex
  • 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: $24.99

Summary

The world of IT is always evolving, but in every area there are stable, core concepts that anyone just setting out needed to know last year, needs to know this year, and will still need to know next year. The purpose of the Foundations series is to identify these concepts and present them in a way that gives you the strongest possible starting point, no matter what your endeavor. Java Foundations provides essential knowledge about what has arguably become the world's most important programming language. What you learn here will benefit you in the short term, as you acquire and practice your skills, and in the long term, as you use them. Topics covered include: * The history of Java * Java fundamentals * Keywords and operators * Flow control * Arrays * Basic and advanced concepts in object-oriented programming * Exception handling * Standard Java API classes * The collections framework

Author Biography

Todd Greanier has taught Java seminars and consulted for over 5 years and is an expert in enterprise systems and multi-tier architectures. Todd has also written the Java 2 Enhancements seminar for Java University at Sun.

Table of Contents

Introduction xiii
The History of Java
1(22)
Where Java Technology Came From
2(1)
The Green Project
2(1)
Enter the Web
2(1)
The Features of Java Technology
3(7)
Java Is Simple
4(1)
Java Is Object Oriented
4(1)
Java Is Interpreted
5(1)
Java Is Portable
6(1)
Java Is Robust
6(1)
Java Is Secure
7(1)
Java Is Multithreaded
8(1)
Java Is High Performance
9(1)
Java Saves Time and Money
9(1)
Java Solves Important Problems
10(1)
How Java Compares with Other Languages
10(1)
How to Download and Install Java
11(9)
Downloading the J2SE Software
12(8)
Terms to Know
20(1)
Review Questions
21(2)
Java Fundamentals
23(30)
Creating a Java Program
24(1)
The Hello World Program
24(4)
Writing the Hello World Source Code
25(1)
Compiling the HelloWorld Source Code
26(1)
Executing the HelloWorld Program
27(1)
Examining the Source Code
28(13)
Using Comments
29(2)
Using White Space
31(1)
Defining the Class
31(3)
Defining the Method
34(4)
Wrapping Up the HelloWorld Program
38(1)
Working with Arguments in the main() Method
39(2)
The Basic Java Data Types
41(10)
Literal Values
42(1)
The Integer Types
43(2)
The Floating Point Types
45(1)
The Character Type
45(1)
The Boolean Type
46(1)
Using the Primitive Types
46(1)
The String Class
47(1)
Primitive Values versus Reference Values
47(4)
Terms to Know
51(1)
Review Questions
52(1)
Keywords and Operators
53(36)
Creating Valid Names in Java
54(1)
The Keyword List
55(19)
The Primitive Type Keywords
56(1)
The Flow Control Keywords
56(1)
Modification Keywords
57(3)
Class-Related Keywords
60(9)
Object-Related Keywords
69(5)
Wrapping Up the Keywords
74(1)
The Java Operators
74(12)
The Arithmetic Operators
75(5)
The Assignment Operators
80(1)
The Relational Operators
81(2)
The Conditional Operators
83(3)
Terms to Know
86(1)
Review Questions
87(2)
Flow Control
89(36)
Application Scope
90(1)
The if Statement
90(7)
Adding the else Statement
92(2)
Testing the Array of Arguments
94(3)
The switch and case Statements
97(7)
The default Statement
100(1)
Deciding between if/else and switch/case
100(2)
Processing a Range of Values
102(2)
The Ternary Operator
104(1)
The for Loop
105(5)
Multiple Increment Steps
107(2)
Beware the Infinite Loop
109(1)
The while Loop
110(4)
Comparing for and while Loops
111(2)
The do Statement
113(1)
The Branching Statements
114(9)
The break Statement
114(3)
The continue Statement
117(4)
The return Statement
121(2)
Terms to Know
123(1)
Review Questions
124(1)
Arrays
125(22)
Understanding Arrays
126(2)
Declaring Arrays
128(1)
Creating Arrays
129(3)
Getting the Length of an Array
130(2)
Populating an Array
132(3)
Using Array Initializers
133(1)
An Array Initializer Variation
134(1)
Accessing Array Elements
135(2)
Multidimensional Arrays
137(5)
Two-Dimensional Array Initializers
140(1)
Nonrectangular Arrays
141(1)
The java.util.Arrays Class
142(3)
Filling an Array
142(1)
Sorting an Array
143(1)
Searching an Array
144(1)
Terms to Know
145(1)
Review Questions
146(1)
Introduction to Object-Oriented Programming
147(34)
The Object-Oriented Paradigm
148(2)
Real-World Objects
149(1)
Defining a Class
150(2)
Instantiating and Using Objects
152(4)
A Closer Look at a Lamp Object
153(2)
Sharing a Reference
155(1)
Object Messaging: Adding a Lightbulb
156(9)
Passing by Value
160(2)
Passing by Reference
162(3)
The this Keyword
165(5)
Bypassing Local Variables Using this
166(2)
Passing a Reference Using this
168(1)
Static Methods Have No this Reference
169(1)
Constructors
170(9)
Multiple Constructors
173(4)
Constructor Chaining
177(2)
Terms to Know
179(1)
Review Questions
180(1)
Advanced Object-Oriented Programming
181(40)
Claiming Your Inheritance
182(2)
Using the extends Keyword
184(12)
The Rules of Inheritance
185(2)
Reference Types versus Runtime Types
187(3)
Expanding the Subclasses
190(3)
The Class Hierarchy
193(2)
The Reference Type Rule for Methods
195(1)
The instanceof Operator and Object Casting
196(3)
Object Casting
197(2)
Introducing Polymorphism
199(13)
Method Overloading
199(2)
Method Overriding
201(11)
Abstract Classes and Methods
212(3)
Interfaces
215(4)
Terms to Know
219(1)
Review Questions
220(1)
Exception Handling
221(28)
The Method Call Stack
222(1)
Exception Noted
223(3)
The Exception Hierarchy
224(2)
Handling Those Exceptions
226(9)
Using try and catch
227(5)
Using a finally Clause
232(3)
Creating Your Own Exception Type
235(2)
Throwing Exceptions
237(9)
Using the throws Keyword
238(2)
The throw Keyword
240(6)
Terms to Know
246(1)
Review Questions
247(2)
Common Java API Classes
249(32)
The java.lang.String Class
250(10)
Common String Methods
251(9)
The java.lang.StringBuffer Class
260(4)
The java.lang.Math Class
264(6)
Calculating a Random Number
266(4)
The Wrapper Classes
270(8)
Creating Wrapper Objects
271(2)
Common Wrapper Methods
273(3)
The Character Class
276(2)
Wrapping It Up
278(1)
Terms to Know
278(1)
Review Questions
279(2)
The Collections Framework
281(28)
Defining a Framework
282(1)
The java.util.Collection Interface
282(2)
Understanding Lists
284(7)
The java.util.List Interface
284(1)
The java.util.ArrayList Class
285(6)
Summarizing Lists
291(1)
Understanding Sets
291(3)
The java.util.Set Interface
291(1)
The java.util.HashSet Class
292(2)
Summarizing Sets
294(1)
Understanding Maps
294(4)
The java.util.Map Interface
294(2)
The java.util.HashMap Class
296(2)
Summarizing Maps
298(1)
Working with Iterators
298(8)
The java.util.Iterator Interface
299(2)
The java.util.Listlterator Interface
301(3)
Iterators and Maps
304(2)
Terms to Know
306(1)
Review Questions
307(2)
Appendix A Answers to Review Questions
309(10)
Chapter 1
309(1)
Chapter 2
310(1)
Chapter 3
310(1)
Chapter 4
311(2)
Chapter 5
313(1)
Chapter 6
314(1)
Chapter 7
315(1)
Chapter 8
316(1)
Chapter 9
317(1)
Chapter 10
317(2)
Glossary 319(10)
Index 329

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