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.

9780130894687

Core Java 2, Volume 1: Fundamentals

by ;
  • ISBN13:

    9780130894687

  • ISBN10:

    0130894680

  • Edition: 5th
  • Format: Paperback w/CD
  • Copyright: 2001-01-01
  • Publisher: Pearson P T R
  • 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: $44.99

Summary

This new fifth edition includes thorough explanations of inner classes, dynamic proxy classes, exception handling, debugging, the Java event model, Input/Output, file management, and much more. Includes information on building GUI applications with Swing classes, making the most of dynamic proxy classes and inner classes, and more. The CD-ROM contains complete source code examples, the Java 2, Standard Edition, Version 1.3 SDK, and useful tools.

Table of Contents

Preface xix
To the Reader xix
About This Book xxi
Conventions xxiii
CD-ROM xxiv
Acknowledgments xxv
An Introduction to Java
1(18)
Java as a Programming Tool
2(1)
Advantages of Java
3(1)
The Java ``White Paper'' Buzzwords
4(6)
Simple
5(1)
Object Oriented
5(1)
Distributed
6(1)
Robust
6
Secure
5(3)
Architecture Neutral
8(1)
Portable
8(1)
Interpreted
9(1)
High Performance
9(1)
Multithreaded
10(1)
Dynamic
10(1)
Java and the Internet
10(3)
Applets at Work
11(1)
Server-side Java
12(1)
A Short History of Java
13(2)
Common Misconceptions About Java
15(4)
The Java Programming Environment
19(24)
Installing the Java Software Development Kit
20(4)
Setting the Execution Path
20(1)
Installing the Library Source and Documentation
21(1)
Installing the Core Java Program Examples
22(1)
Navigating the Java Directories
23(1)
Development Environments
24(1)
Using the Command Line Tools
25(2)
Troubleshooting Hints
26(1)
Using an Integrated Development Environment
27(3)
Locating Compilation Errors
29(1)
Compiling and Running Programs from a Text Editor
30(4)
Graphical Applications
34(3)
Applets
37(6)
Fundamental Programming Structures in Java
43(68)
A Simple Java Program
44(3)
Comments
47(1)
Data Types
48(3)
Integers
48(1)
Floating-Point Types
49(1)
The Character Type
50(1)
The boolean Type
51(1)
Variables
51(1)
Assignments and Initializations
52(2)
Constants
53(1)
Operators
54(8)
Increment and Decrement Operators
56(1)
Relational and boolean Operators
56(1)
Bitwise Operators
57(1)
Mathematical Functions and Constants
58(1)
Conversions Between Numeric Types
59(1)
Casts
60(1)
Parentheses and Operator Hierarchy
61(1)
Strings
62(12)
Concatenation
62(1)
Substrings
62(1)
String Editing
63(2)
Testing Strings for Equality
65(2)
Reading the On-line API Documentation
67(2)
Reading Input
69(2)
Formatting Output
71(3)
Control Flow
74(19)
Block Scope
75(1)
Conditional Statements
75(4)
Indeterminate Loops
79(5)
Determinate Loops
84(4)
Multiple Selections---the switch Statement
88(2)
Breaking Control Flow
90(3)
Big Numbers
93(2)
Arrays
95(16)
Array Initializers and Anonymous Arrays
96(1)
Copying Arrays
97(2)
Command Line Parameters
99(1)
Sorting an Array
100(3)
Multidimensional Arrays
103(3)
Ragged Arrays
106(5)
Objects and Classes
111(70)
Introduction to Object-Oriented Programming
112(8)
The Vocabulary of OOP
113(1)
Objects
114(2)
Relationships Between Classes
116(2)
Contrasting OOP with Traditional Procedural Programming Techniques
118(2)
Using Existing Classes
120(11)
Objects and Object Variables
120(3)
The GregorianCalendar Class of the Java Library
123(8)
Building Your Own Classes
131(11)
An Employee Class
131(3)
Using Multiple Source Files
134(1)
Analyzing the Employee Class
135(1)
First Steps with Constructors
135(2)
The Methods of the Employee Class
137(3)
Method Access to Private Data
140(1)
Private Methods
141(1)
Final Instance Fields
142(1)
Static Fields and Methods
142(6)
Static Fields
142(1)
Constants
143(1)
Static Methods
144(1)
Factory Methods
145(1)
The main Method
145(3)
Method Parameters
148(7)
Object Construction
155(9)
Overloading
155(1)
Default Field Initialization
156(1)
Default Constructors
157(1)
Explicit Field Initialization
157(1)
Parameter Names
158(1)
Calling Another Constructor
159(1)
Initialization Blocks
159(4)
Object Destruction and the finalize Method
163(1)
Packages
164(9)
Using Packages
164(9)
Documentation Comments
173(4)
How to Insert Comments
173(1)
Class Comments
174(1)
Method Comments
174(1)
Field Comments
175(1)
General Comments
175(1)
Package and Overview Comments
176(1)
How to Extract Comments
177(1)
Class Design Hints
177(4)
Inheritance
181(70)
Extending Classes
182(21)
Inheritance Hierarchies
189(1)
Polymorphism
190(1)
Dynamic Binding
191(2)
Preventing Inheritance: Final Classes and Methods
193(1)
Casting
194(3)
Abstract Classes
197(5)
Protected Access
202(1)
Object: The Cosmic Superclass
203(21)
The equals and toString methods
204(7)
Generic Programming
211(2)
Array Lists
213(7)
Object Wrappers
220(4)
The Class Class
224(4)
Reflection
228(19)
Using Reflection to Analyze the Capabilities of Classes
228(5)
Using Reflection to Analyze Objects at Run Time
233(7)
Using Reflection to Write Generic Array Code
240(3)
Method Pointers!
243(4)
Design Hints for Inheritance
247(4)
Interfaces and Inner Classes
251(44)
Interfaces
252(10)
Properties of Interfaces
257(1)
Interfaces and Abstract Classes
258(1)
Interfaces and Callbacks
259(3)
Object Cloning
262(6)
Inner Classes
268(19)
Using an Inner Class to Access Object State
270(4)
Special Syntax Rules for Inner Classes
274(1)
Are Inner Classes Useful? Are They Actually Necessary? Are They Secure?
275(3)
Local Inner Classes
278(5)
Static Inner Classes
283(4)
Proxies
287(8)
Properties of Proxy Classes
292(3)
Graphics Programming
295(52)
Introduction to Swing
296(3)
Creating a Frame
299(4)
Frame Positioning
303(6)
Displaying Information in a Panel
309(6)
2D Shapes
315(8)
Colors
323(5)
Filling Shapes
326(2)
Text and Fonts
328(11)
Images
339(8)
Event Handling
347(70)
Basics of Event Handling
348(19)
Example: Handling a button click
351(6)
Selecting Event Listeners
357(4)
Example: Changing the Look and Feel
361(3)
Example: Capturing Window Events
364(3)
The AWT Event Hierarchy
367(3)
Semantic and Low-Level Events in the AWT
370(3)
Event Handling Summary
370(3)
Low-Level Events
373(19)
Focus Events
373(2)
Keyboard Events
375(7)
Consuming Events
382(1)
Mouse Events
383(9)
Actions
392(9)
Multicasting
401(4)
The Event Queue
405(12)
Adding Custom Events
406(11)
User Interface Components With Swing
417(160)
The Model-View-Controller Design Pattern
418(7)
A Model-View-Controller Analysis of Swing Buttons
423(2)
An Introduction to Layout Management
425(6)
Border Layout
427(2)
Panels
429(2)
Text Input
431(26)
Text Fields
431(7)
Input Validation
438(9)
Password Fields
447(1)
Text Areas
448(4)
Labels and Labeling Components
452(2)
Selecting Text
454(1)
Editing Text
455(2)
Making Choices
457(23)
Check Boxes
457(3)
Radio Buttons
460(5)
Borders
465(5)
Combo Boxes
470(3)
Sliders
473(7)
Menus
480(22)
Building Menus
481(3)
Icons in Menu Items
484(1)
Check Box and Radio Button Menu Items
485(2)
Pop-up Menus
487(1)
Keyboard Mnemonics and Accelerators
488(3)
Enabling and Disabling Menu Items
491(5)
Tool Bars
496(2)
Tool Tips
498(4)
Sophisticated Layout Management
502(29)
Grid Layout
505(5)
Box Layout
510(5)
Grid Bag Layout
515(2)
The gridx, gridy, gridwidth, and gridheight Parameters
517(1)
Weight Fields
517(1)
The fill and anchor Parameters
518(1)
Padding
518(1)
An Alternative Method to Specify the gridx, gridy, gridwidth, and gridheight Parameters
519(4)
Using No Layout Manager
523(1)
Custom Layout Managers
524(5)
Traversal Order
529(2)
Dialog Boxes
531(46)
Option Dialogs
532(12)
Creating Dialogs
544(4)
Data Exchange
548(7)
File Dialogs
555(13)
Color Choosers
568(9)
Applets
577(58)
Applet Basics
578(17)
A Simple Applet
580(2)
Running the Applet Viewer
582(2)
Viewing an Applet in a Browser
584(4)
Converting Applications to Applets
588(2)
Life Cycle of an Applet
590(2)
Security Basics
592(1)
Pop-Up Windows in Applets
593(2)
The Applet HTML Tags and Attributes
595(14)
Applet Attributes for Positioning
596(2)
Applet Attributes for Code
598(3)
Applet Attributes for Java-Challenged Viewers
601(1)
The OBJECT Tags
601(1)
Java Plug-In Tags
602(1)
Passing Information to Applets
603(6)
Multimedia
609(3)
URLs
609(1)
Obtaining Multimedia Files
610(2)
The Applet Context
612(11)
Inter-Applet Communication
612(1)
Displaying Items in the Browser
613(2)
A Bookmark Applet
615(3)
It's an Applet. It's an Application. It's is Both!
618(5)
JAR Files
623(12)
The Manifest
625(2)
Jar Caching
627(1)
Self-Running JAR files
628(1)
Resources
628(5)
Optional Packages
633(1)
Sealing
634(1)
Exceptions and Debugging
635(58)
Dealing with Errors
636(8)
The Classification of Exceptions
637(2)
Advertising the Exceptions That a Method Throws
639(3)
How to Throw an Exception
642(1)
Creating Exception Classes
643(1)
Catching Exceptions
644(11)
Catching Multiple Exceptions
647(1)
Rethrowing Exceptions
647(4)
A Final Look at Java Error-and Exception-Handling
651(4)
Some Tips on Using Exceptions
655(4)
Debugging Techniques
659(24)
Useful Tricks for Debugging
659(5)
Assertions
664(2)
Using a Console Window
666(2)
Tracing AWT Events
668(5)
The AWT Robot
673(4)
Profiling
677(4)
Coverage Testing
681(2)
Using a Debugger
683(10)
The JDB Debugger
683(5)
The Forte Debugger
688(5)
Streams and Files
693(84)
Streams
693(4)
Reading and Writing Bytes
694(3)
The Complete Stream Zoo
697(20)
Layering Stream Filters
699(5)
Data Streams
704(3)
Random-Access File Streams
707(10)
ZIP File Streams
717(9)
Putting Streams to Use
726(14)
Writing Delimited Output
727(1)
String Tokenizers and Delimited Text
727(2)
Reading Delimited Input
729(4)
Random-Access Streams
733(7)
Object Streams
740(29)
Storing Objects of Variable Type
741(4)
Object Serialization File Format
745(4)
The Problem of Saving Object References
749(7)
Output Format for Object References
756(3)
Security
759(5)
Versioning
764(2)
Using Serialization for Cloning
766(3)
File Management
769(8)
Appendix 777(2)
Index 779

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