Muutke küpsiste eelistusi

Complete Java 2 Certification Study Guide 4th Revised edition [Pehme köide]

  • Formaat: Paperback / softback, 576 pages, kõrgus x laius x paksus: 230x191x32 mm, kaal: 1016 g, Illustrations, Contains 1 Paperback / softback and 1 Digital (on physical carrier)
  • Ilmumisaeg: 21-Nov-2003
  • Kirjastus: Sybex Inc.,U.S.
  • ISBN-10: 0782142761
  • ISBN-13: 9780782142761
  • Formaat: Paperback / softback, 576 pages, kõrgus x laius x paksus: 230x191x32 mm, kaal: 1016 g, Illustrations, Contains 1 Paperback / softback and 1 Digital (on physical carrier)
  • Ilmumisaeg: 21-Nov-2003
  • Kirjastus: Sybex Inc.,U.S.
  • ISBN-10: 0782142761
  • ISBN-13: 9780782142761
Here's the book you need to prepare for the Java 2 Programmer's and Developer's exams. This Study Guide provides:
  • In-depth coverage of every exam objective for the Programmer's Exam for J2SE 1.4
  • Hundreds of challenging practice questions
  • Leading-edge exam preparation software, including a test engine, sample simulation questions, and the entire book on PDF

Authoritative coverage of all Programmer's exam objectives, including:

  • Language fundamentals
  • Operators and assignments
  • Modifiers
  • Converting and casting
  • Flow control, exceptions, and assertions
  • Objects and classes
  • Threads
  • The java.lang and java.util packages

In-depth coverage of the topics covered in the Developer's exam, including:

  • Swing components and events
  • Layout managers
  • Enhancing and extending the database
  • Writing the network protocol
  • Building the database server
  • Connecting the client and server

Note:CD-ROM/DVD and other supplementary materials are not included as part of eBook file.

Introduction xix
Assessment Test xxv
Part I The Programmer's Exam
1(260)
Language Fundamentals
3(26)
Source Files
4(1)
Keywords and Identifiers
5(1)
Primitive Data Types
6(3)
Literals
9(2)
boolean Literals
9(1)
char Literals
9(1)
Integral Literals
10(1)
Floating-Point Literals
10(1)
String Literals
10(1)
Arrays
11(2)
Class Fundamentals
13(3)
The main() Method
14(1)
Variables and Initialization
14(2)
Argument Passing: By Reference or By Value
16(3)
Garbage Collection
19(2)
Summary
21(1)
Exam Essentials
22(1)
Key Terms
23(1)
Review Questions
24(3)
Answers to Review Questions
27(2)
Operators and Assignments
29(42)
Evaluation Order
31(1)
The Unary Operators
31(4)
The Increment and Decrement Operators: ++ and --
32(1)
The Unary Plus and Minus Operators: + and -
32(1)
The Bitwise Inversion Operator: ~
33(1)
The Boolean Complement Operator: !
33(1)
The Cast Operator: (type)
34(1)
The Arithmetic Operators
35(6)
The Multiplication and Division Operators: * and /
35(1)
The Modulo Operator: %
36(1)
The Addition and Subtraction Operators: + and -
37(3)
Arithmetic Error Conditions
40(1)
The Shift Operators: <<, >>, and >>>
41(6)
Fundamentals of Shifting
41(1)
Shifting Negative Numbers
42(3)
Reduction of the Right Operand
45(1)
Arithmetic Promotion of Operands
46(1)
The Comparison Operators
47(4)
Ordinal Comparisons with <, <=, >, and >=
47(1)
The instanceof Operator
48(2)
The Equality Comparison Operators: == and !=
50(1)
The Bitwise Operators: &, ^, and |
51(5)
Boolean Operations
54(2)
The Short-Circuit Logical Operators
56(2)
The Conditional Operator:?
58(1)
The Assignment Operators
59(2)
An Assignment Has Value
60(1)
Summary
61(2)
Exam Essentials
63(1)
Key Terms
64(1)
Review Questions
65(3)
Answers to Review Questions
68(3)
Modifiers
71(26)
Modifier Overview
72(1)
The Access Modifiers
72(7)
public
73(1)
private
73(2)
Default
75(1)
protected
76(2)
Subclasses and Method Privacy
78(1)
Summary of Access Modes
79(1)
Other Modifiers
79(8)
final
79(1)
abstract
80(2)
static
82(3)
Static Initializers
85(1)
native
85(1)
transient
86(1)
synchronized
87(1)
volatile
87(1)
Modifiers and Features
87(1)
Summary
88(1)
Exam Essentials
89(1)
Key Terms
89(1)
Review Questions
90(5)
Answers to Review Questions
95(2)
Converting and Casting
97(26)
Explicit and Implicit Type Changes
98(1)
Primitives and Conversion
99(6)
Primitive Conversion: Assignment
99(3)
Assignment Conversion, Narrower Primitives, and Literal Values
102(1)
Primitive Conversion: Method Call
103(1)
Primitive Conversion: Arithmetic Promotion
103(2)
Primitives and Casting
105(2)
Object Reference Conversion
107(4)
Object Reference Assignment Conversion
108(2)
Object Method-Call Conversion
110(1)
Object Reference Casting
111(4)
Summary
115(1)
Exam Essentials
115(1)
Key Terms
116(1)
Review Questions
117(4)
Answers to Review Questions
121(2)
Flow Control, Assertions, and Exception Handling
123(36)
The Loop Constructs
124(7)
The while() Loop
124(2)
The do Loop
126(1)
The for() Loop
126(3)
The break and continue Statements in Loops
129(2)
The Selection Statements
131(2)
The if()/else Construct
131(1)
The switch() Construct
132(1)
Exceptions
133(10)
Flow of Control in Exception Conditions
133(4)
Throwing Exceptions
137(6)
Assertions
143(3)
Assertions and Compilation
144(1)
Runtime Enabling of Assertions
144(1)
Using Assertions
144(2)
Summary
146(1)
Exam Essentials
147(1)
Key Terms
148(1)
Review Questions
149(7)
Answers to Review Questions
156(3)
Objects and Classes
159(34)
Benefits of Object-Oriented Implementation
160(2)
Encapsulation
160(2)
Re-use
162(1)
Implementing Object-Oriented Relationships
162(1)
Overloading and Overriding
163(7)
Overloading Method Names
164(2)
Method Overriding
166(4)
Constructors and Subclassing
170(3)
Overloading Constructors
172(1)
Inner Classes
173(10)
The Enclosing this Reference and Construction of Inner Classes
175(1)
Member Classes
176(1)
Classes Defined Inside Methods
177(6)
Summary
183(1)
Exam Essentials
183(1)
Key Terms
184(1)
Review Questions
185(5)
Answers to Review Questions
190(3)
Threads
193(34)
Thread Fundamentals
194(5)
What a Thread Executes
195(2)
When Execution Ends
197(1)
Thread States
197(1)
Thread Priorities
198(1)
Controlling Threads
199(6)
Yielding
199(2)
Suspending
201(1)
Sleeping
201(1)
Blocking
202(2)
Monitor States
204(1)
Scheduling Implementations
204(1)
Monitors, wait(), and notify()
205(13)
The Object Lock and Synchronization
207(1)
wait() and notify()
208(5)
The Class Lock
213(1)
Beyond the Pure Model
213(2)
Deadlock
215(2)
Another Way to Synchronize
217(1)
Summary
218(1)
Exam Essentials
219(1)
Key Terms
220(1)
Review Questions
221(4)
Answers to Review Questions
225(2)
The java.lang and java.util Packages
227(34)
The Object Class
228(1)
The Math Class
229(2)
The Wrapper Classes
231(3)
Strings
234(7)
The String Class
235(3)
The StringBuffer Class
238(2)
String Concatenation the Easy Way
240(1)
The Collections API
241(12)
Collection Types
242(2)
Collections, Equality, and Sorting
244(1)
The hashCode() Method
245(1)
Collection Implementations in the API
246(1)
Collections and Code Maintenance
247(6)
Summary
253(1)
Summary of Collections
254(1)
Exam Essentials
254(1)
Key Terms
255(1)
Review Questions
256(3)
Answers to Review Questions
259(2)
Part II The Developer's Exam
261(224)
Taking the Developer's Exam
263(32)
Are You Ready for the Exam?
264(2)
Formalities of the Exam
266(2)
Downloading the Assignment
266(1)
Taking the Follow-up Exam
267(1)
What the Assignment Covers
267(1)
How the Assignment and Exam Are Graded
268(1)
Structure of the Assignment
268(2)
Code and APIs Provided
269(1)
Example Assignment: Build a Trouble-Ticket System
270(5)
GUI Development
272(1)
Database/Server Development
273(1)
Client-Server Logic
274(1)
Coding Tips
275(1)
Adhere to Supplied Naming
275(1)
Stress Readability
275(1)
Use Standard Design Patterns
276(1)
Submission Requirements
276(8)
Using javadoc
278(1)
File Structure
279(2)
Writing the README file
281(1)
Using the JAR Tool
282(2)
Preparation for the Follow-up Exam
284(6)
What Are the Choices for Data Structures?
284(1)
Is Implementing Runnable Better Than Extending Thread?
284(1)
How Elaborate Should an Exception Class Structure Get?
285(1)
How Many Ways Can You Set Up ``Listener'' Relationships? Which One Is Best?
285(1)
How Do I Know Which Layout Manager to Use?
286(1)
Which Design Patterns Are Most Useful in This Kind of Project?
287(1)
When Does It Make Sense to Use protected and default Scope?
287(2)
Doesn't an Abstract Class Let the Developer Specify More Behavior Than an Interface?
289(1)
Summary
290(1)
Exam Essentials
291(1)
Key Terms
291(1)
Review Questions
292(1)
Answers to Review Questions
293(2)
Creating the User Interface with Swing
295(42)
Defining the GUI's Requirements
297(3)
Identifying Needed Components
297(1)
Sketching the GUI
298(1)
Isolating Regions of Behavior
299(1)
Choosing Layout Managers
300(1)
Common Swing Methods
300(2)
getSize() and setSize()
301(1)
getLocation() and setLocation()
301(1)
setForeground() and setBackground()
301(1)
setFont()
301(1)
setEnabled()
301(1)
Basic Swing Components
302(14)
Container Components
302(3)
Ordinary Components
305(9)
Menu Components
314(2)
Building a JTable
316(7)
Using AbstractTableModel
319(4)
Building a JTree
323(4)
Menus and Actions
327(2)
Panes
329(3)
JSplitPane
330(1)
JOptionPane
331(1)
Summary
332(1)
Exam Essentials
333(1)
Key Terms
333(1)
Review Questions
334(1)
Answers to Review Questions
335(2)
Layout Managers
337(42)
Layout Manager Theory
338(5)
Component Size and Position
341(2)
Layout Policies
343(31)
The Flow Layout Manager
343(2)
The Grid Layout Manager
345(2)
The Border Layout Manager
347(7)
The Card Layout Manager
354(5)
The GridBag Layout Manager
359(15)
Other Layout Options
374(1)
Summary
375(1)
Exam Essentials
375(1)
Key Terms
376(1)
Review Questions
377(1)
Answers to Review Questions
378(1)
Writing the Network Protocol
379(36)
Client-Server from Scratch
381(14)
Server Operation
381(3)
Connecting Clients to the Server
384(1)
Communication Protocol
384(3)
The Client Request Structure
387(7)
Limitations of the Model
394(1)
Remote Method Invocation (RMI)
395(7)
A Model RMI Transaction
396(1)
Implementing RMI
397(4)
Limitations of RMI
401(1)
More on Threads
402(8)
Sharing Threads
403(7)
Summary
410(1)
Exam Essentials
410(1)
Key Terms
411(1)
Review Questions
412(1)
Answers to Review Questions
413(2)
Connecting Client and Server
415(24)
Events Basics
416(4)
Event Naming Conventions
417(1)
Event Notification
417(3)
Using Java Bean Conventions
420(3)
Java Beans and the MVC Design Pattern
423(2)
Listeners
425(7)
Remote Notification
432(2)
Using Distributed Notification
434(1)
Summary
435(1)
Exam Essentials
435(1)
Key Terms
436(1)
Review Questions
437(1)
Answers to Review Questions
438(1)
Enhancing and Extending the Database
439(26)
Two-Tier Databases
440(1)
Designing a Basic Scheme
441(10)
Using Interfaces
442(5)
Using Abstract Classes
447(4)
Issues in Implementation
451(9)
Exception Handling
451(3)
Design Impediments
454(2)
Thread Safety
456(3)
Supporting New Features
459(1)
Summary
460(1)
Exam Essentials
460(1)
Key Terms
461(1)
Review Questions
462(1)
Answers to Review Questions
463(2)
Building the Database Server
465(20)
Database Requirements
466(13)
Implementing RMI
467(4)
Exporting with UnicastRemoteObject
471(4)
Exporting an Activatable Object
475(4)
Record Locking
479(2)
Summary
481(1)
Exam Essentials
482(1)
Key Terms
482(1)
Review Questions
483(1)
Answers to Review Questions
484(1)
Appendix A Practice Exam
485(20)
Answers to Practice Exam
500(5)
Glossary 505(14)
Index 519


Philip Heller is a consultant, author, educator, and novelist. He created the Java developer exam for Sun and is their leading certification trainer. Simon Roberts works for Sun and is an authority on the Java language. He was the key player in the development of the Java certification program.