Cover image for Complete Java 2 certification study guide
Title:
Complete Java 2 certification study guide
Author:
Roberts, Simon.
Personal Author:
Publication Information:
San Francisco : Sybex, [1999]

©1999
Physical Description:
xxvi, 885 pages : illustrations ; 24 cm + 1 computer optical disc (4 3/4 in.)
General Note:
Includes index.

CD-ROM includes a test engine and Java 2 SDK, version 1.2.
Language:
English
ISBN:
9780782127003
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Item Holds
Searching...
QA76.3 .R627 1999 Book and Software Set Central Closed Stacks
Searching...

On Order

Summary

Summary

Sun Microsystems, creator of Java, has two Java Certification Exams --one for programmers and one for developers. This Study Guide is the ultimate authority for both of the newest certification tests. Every single objective is covered, reinforced with sample questions and annotated answers. CD contains sample tests.


Author Notes

Philip Heller is a technical author, novelist, public speaker, and consultant. He has been instrumental in the creation and maintenance of the Java Programmer and Developer exams
Simon Roberts is a Sun Microsystems programmer, an instructor, an authority on the Java language, and the key player in the development of the entire Java certification program


Table of Contents

Introductionp. xxi
Part I The Programmer's Examp. 1
Chapter 1 Language Fundamentalsp. 3
Source Filesp. 5
Keywords and Identifiersp. 6
Primitive Data Typesp. 7
Literalsp. 10
Arraysp. 12
Class Fundamentalsp. 14
The main() methodp. 15
Variables and Initializationp. 15
Argument Passingp. 17
Garbage Collectionp. 20
Chapter 2 Operators and Assignmentsp. 29
Evaluation Orderp. 31
The Unary Operatorsp. 32
The Increment and Decrement Operators ++ and -p. 33
The Unary + and - Operatorsp. 34
The Bitwise Inversion Operators:p. 34
The Boolean Complement Operator: !p. 35
The Cast Operator: (type)p. 36
The Arithmetic Operatorsp. 37
The Multiplication and Division Operators: * and /p. 37
The Modulo Operator: %p. 39
The Addition and Subtraction Operators: + and -p. 40
Arithmetic Error Conditionsp. 43
The Shift Operators: [[,]], and ]]]p. 44
Fundamentals of Shiftingp. 44
Shifting Negative Numbersp. 46
Reduction of the Right-Hand Operandp. 48
Arithmetic Promotion of Operandsp. 49
The Comparison Operatorsp. 50
Ordinal Comparisons With [, [=, ], and ]=p. 50
The instanceof Operatorp. 51
The Equality Comparison Operators: == and !=p. 53
The Bitwise Operators: and, ^, and |p. 54
Boolean operationsp. 58
The Short-Circuit Logical Operatorsp. 59
The Ternary Operator: ?:p. 61
Assignment Operatorsp. 62
Assignment Has Valuep. 63
Chapter 3 Modifiersp. 71
Modifier Overviewp. 73
The Access Modifiersp. 73
publicp. 74
privatep. 74
Friendlyp. 76
protectedp. 77
Subclasses and Method Privacyp. 79
Summary of Access Modesp. 80
Other Modifiersp. 80
finalp. 81
abstractp. 82
staticp. 84
Static Initializersp. 87
nativep. 88
transientp. 89
synchronizedp. 90
volatilep. 90
Modifiers and Featuresp. 90
Chapter 4 Converting and Castingp. 99
Explicit and Implicit Type Changesp. 100
Primitives and Conversionp. 101
Primitive Conversion: Assignmentp. 102
Primitive Conversion: Method Callp. 105
Primitive Conversion: Arithmetic Promotionp. 106
Primitives and Castingp. 108
Object Reference Conversionp. 110
Object Reference Assignment Conversionp. 111
Object Method-Call Conversionp. 114
Object Reference Castingp. 115
Chapter 5 Flow Control and Exceptionsp. 127
The Loop Constructsp. 129
The while() Loopp. 129
The do Loopp. 130
The for() Loopp. 131
The break and continue Statements in Loopsp. 134
The Selection Statementsp. 136
The if()/else Constructp. 136
The switch() Constructp. 137
Exceptionsp. 138
Flow of Control in Exception Conditionsp. 139
Throwing Exceptionsp. 143
Chapter 6 Objects and Classesp. 163
Benefits of Object-Oriented Implementationp. 165
Abstract Data Typesp. 165
Reusep. 167
Implementing Object-Oriented Relationshipsp. 168
Overloading and Overridingp. 169
Overloading Method Namesp. 170
Method Overridingp. 173
Constructors and Subclassingp. 179
Overloading Constructorsp. 181
Inner Classesp. 183
The Enclosing this Reference and Construction of Inner Classesp. 184
Classes Defined Inside Methodsp. 186
Chapter 7 Threadsp. 199
Thread Fundamentalsp. 201
What a Thread Executesp. 201
When Execution Endsp. 204
Thread Statesp. 205
Thread Prioritiesp. 206
Controlling Threadsp. 207
Yieldingp. 207
Suspendingp. 209
Sleepingp. 210
Blockingp. 211
Monitor Statesp. 212
Scheduling Implementationsp. 213
Monitors, wait(), and notify()p. 214
The Object Lock and Synchronizationp. 216
wait() and notify()p. 218
Beyond the Pure Modelp. 222
Strange Ways to Synchronizep. 224
Chapter 8 The java.lang and java.util Packagesp. 233
The Object Classp. 235
The Math Classp. 236
The Wrapper Classesp. 237
Stringsp. 241
The String Classp. 241
The StringBuffer Classp. 246
String Concatenation the Easy Wayp. 248
The Collections APIp. 250
Collection Typesp. 251
Collection Implementations in the APIp. 253
Summary of Collectionsp. 254
Chapter 9 Layout Managersp. 259
Why Java Uses Layout Managersp. 261
Layout Manager Theoryp. 262
Containers and Componentsp. 263
Component Size and Positionp. 268
Layout Policiesp. 270
The Flow Layout Managerp. 271
The Grid Layout Managerp. 274
The Border Layout Managerp. 275
Other Layout Optionsp. 283
Improving Your Chancesp. 285
Chapter 10 Eventsp. 295
Motivation for the Event Delegation Modelp. 296
The Event Class Hierarchyp. 297
Event Listenersp. 299
Explicit Event Enablingp. 302
Adaptersp. 304
Chapter 11 Componentsp. 313
Components in Generalp. 314
The Visual Componentsp. 317
The Container Componentsp. 332
The Menu Componentsp. 335
Chapter 12 Paintingp. 343
The paint() Method and the Graphics Contextp. 344
Selecting a Colorp. 346
Selecting a Fontp. 347
Drawing and Fillingp. 348
Clippingp. 357
Painting a Contained Componentp. 358
The GUI Thread and the repaint() Methodp. 363
Spontaneous Paintingp. 363
The repaint() Methodp. 364
Imagesp. 367
Chapter 13 Input and Outputp. 375
File Input and Outputp. 376
Text Representation and Character Encodingp. 376
The File Classp. 377
The RandomAccessFile Classp. 382
Streams, Readers, and Writersp. 386
Low-Level Streamsp. 387
High-Level Filter Streamsp. 389
Readers and Writersp. 394
Part II The Developer's Examp. 403
Chapter 14 Taking the Developer's Examp. 405
Are You Ready for the Exam?p. 407
Formalities of the Examp. 410
Downloading the Assignmentp. 411
Taking the Follow-up Examp. 412
What the Assignment Coversp. 412
How the Assignment and Exam Are Gradedp. 413
JDK 1.2 Specificsp. 413
Chapter 15 Assignment: Room Reservation Systemp. 419
Business Scenariop. 422
Project Specificsp. 423
Code and APIs Providedp. 423
Functional Goalsp. 425
Write a User Interfacep. 425
Enable Network Access (Client-Server)p. 427
Add Features to an Existing Databasep. 429
Other Requirementsp. 430
Adherence to Supplied Namingp. 430
Other Design Issuesp. 431
Chapter 16 Enhancing and Extending the Databasep. 433
Two-Tier Databasesp. 434
Designing a Basic Schemep. 436
Using Interfacesp. 437
Using Abstract Classesp. 443
Issues in Implementationp. 447
Exception Handlingp. 448
Design Impedimentsp. 451
Thread Safetyp. 453
Supporting New Featuresp. 458
Chapter 17 Writing the Network Protocolp. 461
Client-Server from Scratchp. 463
Server Operationp. 464
Connecting Clients to the Serverp. 467
communications Protocolp. 468
The Client/Request Structurep. 471
Limitations of the Modelp. 479
Remote Method Invocation (RMI)p. 480
A Model RMI Transactionp. 481
Implementing RMIp. 483
Limitations of RMIp. 488
More on Threadsp. 490
Sharing Threadsp. 490
Chapter 18 Designing the User Interfacep. 501
Defining the GUI's Requirementsp. 503
Identify Needed Componentsp. 504
Sketching the GUIp. 505
Isolating Regions of Behaviorp. 507
Choosing Layout Managersp. 508
Using Swingp. 508
Tablesp. 510
Listsp. 512
Using Layout Managersp. 514
CardLayoutp. 515
GridBagLayoutp. 517
Event-Handling and Stylep. 522
Event-Handling and Threadsp. 526
Chapter 19 Thinking about the Follow-Up Examp. 531
Preparation Questionsp. 532
Appendicesp. 545
Appendix A Answersp. 547
Appendix B Using the Test Programp. 575
Appendix C Java 2 API Referencep. 583
Glossaryp. 857
Indexp. 861