Skip to content

Java Programmer JDK 1.2 Exam Prep

Best in textbook rentals since 2012!

ISBN-10: 1576102610

ISBN-13: 9781576102619

Edition: 1999

Authors: Joe Wigglesworth

List price: $49.99
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Customers also bought

Book details

List price: $49.99
Copyright year: 1999
Publisher: Coriolis Group, LLC, The
Binding: Paperback
Pages: 600
Size: 7.50" wide x 9.25" long x 1.75" tall
Weight: 2.2
Language: English

Joe Wigglesworth, P.Eng, earned his B.A.Sc and M.A.Sc in Electrical Engineering from the University of Waterloo. He is a senior manager at IBM Toronto Laboratory where he leads the Centre for Advanced Studies. He taught C++ programming courses at a community college in Toronto for four years. He taught Java and JavaScript programming at the University of Toronto School of Continuing Studies for three years and was a recipient of the school?s Excellence in Teaching Award.

Introductionp. xxiii
Introduction To Javap. 1
Java Design Principlesp. 2
History Of Javap. 3
Java Toolsp. 4
The Java Virtual Machinep. 4
The Java Development Kitp. 4
Java Documentationp. 5
Sun's Java Certification Examp. 5
Signing Up With Sunp. 5
Signing Up With Sylvan Prometricp. 6
Taking The Testp. 7
Get A Java Jobp. 7
Chapter Summaryp. 7
Hands-On Projectsp. 8
Case Projectsp. 11
Java Language Fundamentalsp. 13
The Structure Of Java Programsp. 14
Packages, Import Statements, And Class Namesp. 15
Access Modifiers And Packagesp. 16
Java Reserved Wordsp. 17
Java Identifiersp. 18
Java Variables And Data Typesp. 18
Primitive Variablesp. 18
The Integer Primitivesp. 18
Representing Integer Primitivesp. 19
The char Primitivep. 21
The Floating-Point Primitivesp. 22
The boolean Primitivesp. 23
Classes Easily Confused With Primitivesp. 23
Reference Variablesp. 23
Array Variablesp. 24
Class Basicsp. 25
Inner Classesp. 25
Methodsp. 25
Constructing An Objectp. 27
Interface Basicsp. 28
Sun's Java Development Kitp. 28
The Java Compilerp. 29
Source-Code Directories And Packagesp. 29
Source-Code Commentsp. 30
Conventions For Applicationsp. 30
An Example Applicationp. 30
Console Applicationsp. 33
Conventions For Appletsp. 33
[PARAM] Tagsp. 34
Applet Method Conventionsp. 35
JavaDoc Format Documentationp. 35
Chapter Summaryp. 37
Review Questionsp. 37
Hands-On Projectsp. 42
Case Projectsp. 45
Java Operators With Primitives And Objectsp. 47
Numeric Operatorsp. 48
Increment And Decrementp. 48
Unary + And - Operatorsp. 49
Arithmetic Operators * / % + And -p. 49
Arithmetic Errorsp. 52
The Modulo Operatorp. 54
Numeric Comparisonsp. 54
Logical And Bitwise Operatorsp. 54
Bitwise Operations With Integersp. 54
Logical Operatorsp. 58
The Conditional Operators andand And p. 59
Logical Operations With Objectsp. 60
The instanceof Operatorp. 60
Using == And equals With Objectsp. 62
Some equals And == Pitfallsp. 62
String Operators--A Special Casep. 64
Strings Are Immutablep. 64
The toString Methodp. 65
Expression Evaluationp. 65
Examplesp. 66
Casting And Converting OF Referencesp. 66
Narrowing Conversions Of Referencesp. 67
Summary Of Allowed Reference Conversionsp. 67
Array Declaration, Initialization, And Conversionp. 68
Common Pitfalls In Initializing Arraysp. 69
Casting And Converting Arraysp. 69
Chapter Summaryp. 70
Review Questionsp. 70
Hands-On Projectsp. 76
Case Projectp. 83
Creating Java Classesp. 85
Creating Java Classesp. 86
Declaring A Java Classp. 86
The Class Bodyp. 90
Constructorsp. 98
Declaring A Constructorp. 99
Static Members And Variablesp. 102
Static Fieldsp. 102
Static Methodsp. 104
Static Constructorsp. 106
The this Keywordp. 107
Automatic Variablesp. 110
Initialization of Automatic Variablesp. 112
Variable Hidingp. 112
Local Variable Declarationp. 113
Method Signaturesp. 113
Inner Classesp. 114
Nested Top-Level Classes And Interfacesp. 115
Member Classesp. 116
Local Classesp. 117
Anonymous Classesp. 117
Chapter Summaryp. 118
Review Questionsp. 119
Hands On Projectsp. 126
Case Projectsp. 132
Flow Control And Exceptionsp. 135
Loops With for, while, And dop. 136
The for Loopp. 136
Using do And whilep. 137
The break And continue Statements In Loopsp. 137
Branching With if - else And switchp. 140
Flow Control With switch - casep. 141
Summary Of Basic Flow Controlp. 142
Exceptions, Errors, And Flow Controlp. 142
The Throwable Classp. 143
Handling Exceptions With try And catchp. 143
Exceptions, try, catch, And finallyp. 146
Exceptions On Top Of Exceptionsp. 147
Designing Programs With Exceptionsp. 147
Checked Or Unchecked Exceptions?p. 147
Chapter Summaryp. 148
Review Questionsp. 148
Hands-On Projectsp. 156
Case Projectsp. 163
Program Architecture With Java Classes And Objectsp. 165
Extending Classes And Implementing Interfacesp. 166
Examples From The Standard Libraryp. 166
Example From The Testing Appletp. 166
Why Implement Runnable?p. 168
Extending The Quest Classp. 168
Benefits Of This Architecturep. 168
Overriding Methodsp. 169
Restrictions On Overriding Methodsp. 169
Accessing The Overriden Methodp. 171
Overriding Variablesp. 171
Overloading Methodsp. 172
Overloading Constructorsp. 172
Abstract Classes In Program Designp. 173
Extending An Abstract Classp. 173
More About Interfacesp. 174
Defining Constants In Interfacesp. 175
Subclassing Interfacesp. 175
Interfaces In The Standard Libraryp. 175
The Class Classp. 175
Dynamic Class Loadingp. 176
The Reflection APIp. 176
The final Problemp. 176
Design Patterns And Javap. 177
The Singleton Patternp. 177
The Model-View-Controller Patternp. 178
The Observer-Observable Patternp. 178
The Decorator Patternp. 178
Memory Management In Javap. 179
What Is An Unreachable Object?p. 180
The Programmer's View Of Memory Managementp. 180
Finalizers And Program Designp. 181
Memory Limitsp. 182
Chapter Summaryp. 183
Review Questionsp. 183
Hands-On Projectsp. 189
Case Projectsp. 195
Java Threadsp. 197
Multitasking Vs. Multithreadingp. 198
The Thread Classp. 198
The Thread Life-Cyclep. 198
Creating A New Threadp. 199
Static Methods Of The Thread Classp. 202
More Thread Methodsp. 203
I/O Processes And Threadsp. 204
The Death Of A Threadp. 205
Thread Groupsp. 205
Synchronizing Objects And Threadsp. 206
The synchronized Keywordp. 206
Examples From The Standard Libraryp. 207
Which Object To Synchronize Onp. 208
Objects Not To Synchronize Onp. 208
What About static Methods?p. 209
Using wait And notifyp. 209
Using wait With A Timeoutp. 210
The InterruptedExceptionp. 210
Hazards Of Thread Programmingp. 211
Deadlock Situationsp. 211
Use Of The System Threadp. 211
Exceptions Associated With Threadsp. 212
Chapter Summaryp. 212
Review Questionsp. 212
Hands-On Projectsp. 217
Case Projectsp. 224
Standard Java Libraryp. 225
The Core Classesp. 226
The Object Classp. 226
The Class Classp. 228
The String Classp. 228
The StringBuffer Classp. 229
The Primitive Wrapper Classesp. 229
The Math Classp. 231
The System Classp. 232
The Runtime Classp. 234
The Extended Math Classesp. 235
The BigDecimal Classp. 235
The BigInteger Classp. 235
The Utility Classesp. 235
Using Properties Objectsp. 235
The Locale Classp. 236
The Calendar And Date Classesp. 237
Using A StringTokenizerp. 237
The Original Collectionsp. 238
The Hashtable Classp. 239
The Vector Classp. 242
The Advanced Collections Classesp. 244
The Interfacesp. 244
The Abstract Classesp. 247
Some Concrete Collection Classesp. 248
Utility Classes That Work With Collection Classesp. 248
Chapter Summaryp. 250
Review Questionsp. 250
Hands-On Projectsp. 254
Case Projectsp. 262
Java AWT And JFC Componentsp. 263
An Overview Of Java Graphic Interfacesp. 264
Java 1.0:The First AWTp. 264
Java 1.1:Improved Event Handlingp. 264
Java 1.1:Name Changes And Deprecated Methodsp. 265
Java 1.1:The Java Foundation Classes And Swingp. 265
The Java AWT Packagep. 266
The Component Classp. 267
Interfaces Implemented By Componentp. 267
Appearance-Related Properties And Methodsp. 268
Behavior-Related Methodsp. 270
Direct Descendents Of Componentp. 270
The Container Classp. 271
How Container Classes Are Usedp. 271
Adding Components To A Containerp. 272
Using Checkbox Objectsp. 273
Using List And Choice Objectsp. 275
Getting Text Inputp. 277
Menu-Related Classesp. 278
Building A Menup. 278
Graphics-Related Classes In The AWTp. 281
The Color Classp. 281
The ComponentOrientation Classp. 281
The Cursor Classp. 282
The AlphaComposite Classp. 282
The Font Classp. 283
The Graphics And Graphics2D Classesp. 283
The Image Class And The java.awt.image Packagep. 283
Screen Geometry Classesp. 284
Event-Related Classes In The AWTp. 286
The Event Classp. 286
The AWTEvent And EventObject Classesp. 287
User Interfaces With Swing Classesp. 287
The JComponent Classp. 289
The ComponentUI Classp. 289
Pluggable Look And Feelp. 290
Primary Containers And JRootPanep. 291
The JRootPane Classp. 292
The JLayeredPane Classp. 293
The JScrollPane Classp. 294
Standard Dialog Boxes With JOptionPanep. 294
A Summary Of User Controls With AWT And Swingp. 295
Chapter Summaryp. 296
Review Questionsp. 296
Hands-On Projectsp. 299
Case Projectsp. 310
Bulding GUI Applications With Layout Managersp. 311
The Layout Manager Conceptp. 312
The LayoutManager Interfacep. 312
Some Classes Implementing LayoutManagerp. 313
The LayoutManager2 Interfacep. 316
Building A Custom Layout Managerp. 322
Default Layout Managersp. 322
Specialized Containersp. 322
Using The JToolBar Containerp. 323
Using The JTabbedPane Classp. 324
The JSplitPane Classp. 325
Chapter Summaryp. 325
Review Questionsp. 326
Hands-On Projectsp. 330
Case Projectsp. 340
Java Event Handlingp. 341
A Brief History Of Java Event Handlingp. 342
Events In Java 1.0p. 342
Events In Java 1.1p. 343
The Event Hierarchyp. 344
The AWTEvent Classp. 344
The ActionEvent Classp. 345
The AdjustmentEvent Classp. 346
The ComponentEvent Groupp. 347
The InputEvent Eventsp. 348
The KeyEvent Classp. 349
The MouseEvent Classp. 349
Generating Eventsp. 350
Event Listenersp. 351
The Listener Interfacesp. 351
The Adapter Classesp. 351
Adding Listeners To A Componentp. 353
Listeners And Menusp. 353
Listener Chains And The AWTEventMulticaster Classp. 353
Coordinating Events With Actionsp. 354
The AbstractAction Classp. 355
Creating Controls With An Action Objectp. 356
Chapter Summaryp. 356
Review Questionsp. 356
Hands-On Projectsp. 359
Case Projectsp. 375
Java Graphicsp. 377
Introduction To Graphicsp. 378
The Graphics Classp. 378
Graphics Objects And Colorp. 378
Coordinate Systems And Graphicsp. 379
Drawing With Graphicsp. 379
Drawing In XOR Modep. 382
The Clipping Areap. 382
Drawing Textp. 384
The GraphicsEnvironment And Fontsp. 384
The Font Classp. 384
Positioning Textp. 384
Where Do Graphics Come From?p. 386
The Component getGraphics Methodp. 387
Graphics For Off-Screen Imagesp. 387
The Graphics2D Classp. 388
Graphics2D Coordinate Systemsp. 388
Graphics2D And Colorp. 389
Graphics2D And The Penp. 389
Printingp. 389
The Printing Interfaces And Classesp. 390
Working With Imagesp. 392
The Image Classp. 392
The MediaTracker Classp. 393
Filtersp. 394
The PixelGrabber Classp. 395
The MemoryImageSource Classp. 395
Chapter Summaryp. 395
Review Questionsp. 396
Hands-On Projectsp. 397
Case Projectsp. 407
Java IOp. 409
How Java Treats Filesp. 410
The File Classp. 410
The RandomAccessFile Classp. 413
Stream Methodsp. 414
Where Do Streams Come From?p. 415
Streams And Network Connectionsp. 415
Filtering Input Streamsp. 419
Plugging Functionality Togetherp. 420
Readers And Writersp. 421
The InputStreamReader Classp. 421
The BufferedReader Classp. 422
The FileReader Classp. 422
The OutputStreamWriter Classp. 422
The BufferedWriter Classp. 422
The PrintWriter Classp. 422
The FileWriter Classp. 422
Object Serializationp. 423
Writing An Objectp. 423
Reading An Objectp. 424
When And What To Serializep. 424
JAR And Zip Filesp. 425
Reading And Writing JAR FIlesp. 425
Networks, Sockets, TCP/IP, And Datagramsp. 425
Networks And Protocolsp. 426
The Socket Class And TCP/IPp. 426
The UDP Protocol And DatagramSocketsp. 427
Talking To Serial And Parallel Portsp. 429
Chapter Summaryp. 429
Review Questionsp. 429
Hands-On Projectsp. 432
Case Projectsp. 452
Advanced Java Topicsp. 453
Java In A Demitassep. 454
Smart Card Standardsp. 454
Java Card Hardwarep. 454
The Java Card APIp. 455
The iButton Implementation OfJava Cardp. 456
The Java Communications APIp. 458
The Contents Of The javax.comm Packagep. 459
Managing Portsp. 460
Talking To Ports With SerialPort And ParallelPort Objectsp. 460
Java Servletsp. 462
The Basic Servlet Interfacep. 463
The Servlet Development Kitp. 463
The servletrunner Utilityp. 464
Invoking A Servletp. 465
The Servlet APIp. 465
Life Cycle OfA Servletp. 468
Typical Servlet Usesp. 468
Chapter Summaryp. 469
Hands-On Projectsp. 469
Case Projectsp. 477
Internet Resources And Booksp. 479
Java Programming And Debugging Hintsp. 483
Objectivesp. 487
Glossaryp. 489
Indexp. 513
Table of Contents provided by Syndetics. All Rights Reserved.