简介
Ideal as a stand-alone exam preperation tool, or as a complement to any study guide, the Mike Meyers' Certification Passport series is a focused exam preperation programme. This "passport" provides intensive and concise exam preparation plus practice exam software from recognized experts. Free practice exam software included on CD-the reader experiences exactly what it's like to take the real exam. The book's interior features a unique design that plays off a "travel" theme, making difficult material more interesting. Design icons make learning more fun than the traditional approach of other exam guides. Focusing on only what the candidate needs to know to pass the exam, the reader gets intensive and concise coverage of each official exam objective. Sample questions and answers are at the end of each chapter. All answer options, correct and incorrect, receive detailed explanations as to why the answer is or is not the correct one. The book's compact design is very portable for candidates on the road. ...
目录
Check-In p. xv
Basic Language Rules and OOP Concepts p. 1
Language Fundamentals p. 3
Identify Correctly Constructed Source Files and Declarations p. 4
Organizing Java Source Files p. 5
The Structure of a Java Source File p. 6
Defined Types p. 11
Top-Level Type Declarations p. 16
Inner Type Declarations p. 18
Initalization Blocks p. 20
Field Declarations p. 21
Method Declarations p. 22
State the Correspondence Between main () and Command-Line Arguments p. 30
main() and Command-Line Arguments p. 30
Java Language Keywords p. 31
Identifiers p. 32
State Effect of Using a Variable or Array Element When No Explicit Assignment Is Made p. 32
Variables Declared as Fields p. 33
Variables Declared Within Methods p. 35
Accessing Arrays and Array Elements p. 36
State the Range of Primitive Data Types and Declare Literal Values for String and Primitive Types p. 39
Primitive Data Types p. 39
Literals p. 40
Checkpoint p. 48
Review Questions p. 51
Review Answers p. 53
Declarations and Access Control p. 55
Write Code That Declares, Constructs, and Initializes Arrays p. 56
Array Overview p. 56
Declaring an Array p. 57
Constructing an Array p. 58
Initializing an Array p. 59
Multidimensional Arrays p. 63
Declare Classes, Inner Classes, Methods, Instance Variables, Static Variables, and Automatic (Method Local) Variables
Declaration Basics p. 65
Modifers p. 67
Determine If a Default Constructor Will Be Created p. 83
State the Legal Return Types p. 84
Checkpoint p. 86
Review Questions p. 87
Review Answers p. 89
Overloading, Overriding, Runtime Type, and Object Orientation p. 91
State the Benefits of Encapsulation in Object-Oriented Design p. 92
"Is-A" Relationships p. 94
"Has-A" Relationships p. 95
Write Code to Invoke Overridden or Overloaded Methods and Parental or Overloaded Constructors
Overridden Methods p. 96
Overloaded Methods p. 100
Overloaded and Parental Constructors p. 103
Rules for Constructors p. 104
Write Code to Construct Instances of Any Concrete Class p. 108
Inner Classes p. 109
Top-Level Nested Classes p. 114
Checkpoint p. 115
Review Questions p. 117
Review Answers p. 118
Garbage Collection p. 119
Guaranteed Garbage Collector Behaviors p. 120
The Java Memory Model p. 120
The Garbage Collector p. 122
Objects in Memory p. 123
Parameter Variables Are Passed as Copies p. 126
The Role of finalize () in Garbage Collection p. 129
Checkpoint p. 130
Review Questions p. 131
Review Answers p. 133
The java. lang Package p. 135
Package Overview p. 136
Write Code Using Methods of the java.lang.Math Class p. 137
The Wrapper Classes p. 137
java.lang.Math Fields Covered by the Objectives p. 138
java.lang.Math Methods Covered by the Objectives p. 139
The System Class p. 148
The Object Class p. 148
getClass() p. 154
Describe the Significance of the Immutability of String Objects
Strings p. 157
substring() p. 161
Checkpoint p. 164
Review Questions p. 167
Review Answer p. 169
Java in Practice p. 171
Operators and Assignments p. 173
Determine the Result of Applying Any Operator to Operands p. 174
Unary Arithmetic Operators p. 181
The Bitwise Operators p. 183
The Operators and, |, andand, ||, and Variables of Known Values p. 191
The Boolean Logical Operators p. 191
The Boolean Logical Short-Circuit Operators p. 192
The Equality Operators == and != p. 193
The Shorthand Operators p. 195
The Conditional Operator ?: p. 196
The String Concatenation Operator + p. 197
The Type Comparison Operator - instanceof p. 199
Apply boolean equals (Object) to Objects of java.lang.String, java.lang.Boolean, and java.lang.Object p. 202
The Ubiquitous equals() Method p. 203
Effects of Method Invocations on Objects and Primitives p. 205
Checkpoint p. 207
Review Questions p. 211
Review Answers p. 214
Flow Control p. 217
Write Code Using if and switch Statements and Identify Legal Argument Types p. 218
if-else Statement p. 218
The switch statement p. 220
Write Code Using All Forms of Loops p. 223
Definite Iteration: The for Loop p. 223
Indefinite Iteration: while and do/while Loops p. 225
The Transfer Statements: break and continue p. 227
Write Code That Makes Proper Use of Exceptions and Exception Handling Clauses p. 230
Java Statements Dealing with Exceptions p. 231
The try-catch-finally Construction p. 234
Checked and Unchecked Exceptions p. 237
The throws Clause p. 238
Restrictions on Throwing Exceptions p. 240
Exceptions in Constructors, Initializers, and Finalizers p. 241
Checkpoint p. 242
Review Questions p. 244
Review Answers p. 250
Threads p. 253
Instantiate and Start New Threads Using Both java.lang.Thread and java.lang.Runnable p. 254
Thread States p. 258
Recognize Conditions That Might Prevent a Thread From Executing p. 260
Thread Priority and Scheduling p. 264
Write Code Using synchronized, wait, notify, or notifyAll p. 266
Communicating Between Threads to Avoid Race Conditions p. 273
User and Daemon Threads p. 280
Checkpoint p. 282
Review Questions p. 285
Review Answers p. 287
Using the Java API p. 289
AWT 1: The User Interface p. 291
Using the Java API p. 289
Understanding the GUI p. 292
Program Flow p. 292
Applications p. 293
Applets p. 293
Write Code Using Components p. 294
Components p. 295
Write Code Using Containers p. 307
Write Code Using the LayoutManager Classes of the java.awt Package p. 311
Controlling the Look p. 311
CardLayout p. 320
LayoutManagers vs. Containers p. 321
Present a GUI with Specified Appearance and Resize Behavior p. 321
Keeping the Screen Clean p. 324
Checkpoint p. 334
Review Questions p. 335
Review Answers p. 339
AWT 2: Making the Screen Work p. 341
State the Event Classname for Any Specified Event Listener Interface in the java.awt.event Package p. 342
Events: What Are They? p. 342
Event Enabling p. 344
Write Code to Implement Listener Classes and Methods p. 346
Delegating to Listeners p. 347
The Standard Setup and KeyEvents p. 349
The Embedded Driver Setup p. 353
Inner Listeners p. 354
Anonymous Classes p. 355
Event Adapters p. 357
Determine the Affected Component, Mouse Position, Nature, and Time of Event p. 359
Event Information p. 359
Putting More than One Listener on a Component p. 362
Checkpoint p. 365
Review Questions p. 366
Review Answers p. 370
java.io Package p. 373
Navigate with the File Class p. 374
Overview p. 374
Checking File Attributes p. 375
Comparing Pathnames p. 375
Operating on Underlying Files p. 376
Extracting and Transforming Names p. 376
Listing Directory Contents p. 380
Use Stream Readers and Writers p. 383
Overview p. 383
Byte Stream and Character Classes p. 384
InputStreamReader p. 388
OutputStreamWriter p. 389
When to Specify the Encoding p. 389
Filter Input and Output Streams p. 392
Overview p. 393
FilterInputStream and Its Subclasses p. 394
FilterOutputStream and Its Subclasses p. 397
Read and Update Files p. 399
FileInputStream p. 399
Describe Permanent Effects on the File Systemfrom Using FileInputStream, FileOutput Stream, and RandomAccess File p. 408
Checkpoint p. 409
Review Questions p. 410
Review Answers p. 414
The java.util Package p. 417
Make Appropriate Selection of Collection Classes/Interfaces p. 419
Collections Interfaces and Classes p. 420
Mapping Interfaces and Classes p. 432
Iterators p. 439
Utility Classes p. 442
Checkpoint p. 443
Review Questions p. 444
Review Answers p. 447
About the CD-ROM p. 449
Mike Meyers' Certification Passport CD-ROM Instructions p. 449
System Requirements p. 449
Technical Support p. 450
About the Online Code Samples p. 450
Career Flight Path p. 451
Sun Certified Developer for Java 2 Platform (310-027) p. 452
Sun Certified Web Component Developer for J2EE Platform (310-080) p. 452
Sun Certified Enterprise Architect for J2EE Technology (310-051 and 310-061) p. 452
Basic Language Rules and OOP Concepts p. 1
Language Fundamentals p. 3
Identify Correctly Constructed Source Files and Declarations p. 4
Organizing Java Source Files p. 5
The Structure of a Java Source File p. 6
Defined Types p. 11
Top-Level Type Declarations p. 16
Inner Type Declarations p. 18
Initalization Blocks p. 20
Field Declarations p. 21
Method Declarations p. 22
State the Correspondence Between main () and Command-Line Arguments p. 30
main() and Command-Line Arguments p. 30
Java Language Keywords p. 31
Identifiers p. 32
State Effect of Using a Variable or Array Element When No Explicit Assignment Is Made p. 32
Variables Declared as Fields p. 33
Variables Declared Within Methods p. 35
Accessing Arrays and Array Elements p. 36
State the Range of Primitive Data Types and Declare Literal Values for String and Primitive Types p. 39
Primitive Data Types p. 39
Literals p. 40
Checkpoint p. 48
Review Questions p. 51
Review Answers p. 53
Declarations and Access Control p. 55
Write Code That Declares, Constructs, and Initializes Arrays p. 56
Array Overview p. 56
Declaring an Array p. 57
Constructing an Array p. 58
Initializing an Array p. 59
Multidimensional Arrays p. 63
Declare Classes, Inner Classes, Methods, Instance Variables, Static Variables, and Automatic (Method Local) Variables
Declaration Basics p. 65
Modifers p. 67
Determine If a Default Constructor Will Be Created p. 83
State the Legal Return Types p. 84
Checkpoint p. 86
Review Questions p. 87
Review Answers p. 89
Overloading, Overriding, Runtime Type, and Object Orientation p. 91
State the Benefits of Encapsulation in Object-Oriented Design p. 92
"Is-A" Relationships p. 94
"Has-A" Relationships p. 95
Write Code to Invoke Overridden or Overloaded Methods and Parental or Overloaded Constructors
Overridden Methods p. 96
Overloaded Methods p. 100
Overloaded and Parental Constructors p. 103
Rules for Constructors p. 104
Write Code to Construct Instances of Any Concrete Class p. 108
Inner Classes p. 109
Top-Level Nested Classes p. 114
Checkpoint p. 115
Review Questions p. 117
Review Answers p. 118
Garbage Collection p. 119
Guaranteed Garbage Collector Behaviors p. 120
The Java Memory Model p. 120
The Garbage Collector p. 122
Objects in Memory p. 123
Parameter Variables Are Passed as Copies p. 126
The Role of finalize () in Garbage Collection p. 129
Checkpoint p. 130
Review Questions p. 131
Review Answers p. 133
The java. lang Package p. 135
Package Overview p. 136
Write Code Using Methods of the java.lang.Math Class p. 137
The Wrapper Classes p. 137
java.lang.Math Fields Covered by the Objectives p. 138
java.lang.Math Methods Covered by the Objectives p. 139
The System Class p. 148
The Object Class p. 148
getClass() p. 154
Describe the Significance of the Immutability of String Objects
Strings p. 157
substring() p. 161
Checkpoint p. 164
Review Questions p. 167
Review Answer p. 169
Java in Practice p. 171
Operators and Assignments p. 173
Determine the Result of Applying Any Operator to Operands p. 174
Unary Arithmetic Operators p. 181
The Bitwise Operators p. 183
The Operators and, |, andand, ||, and Variables of Known Values p. 191
The Boolean Logical Operators p. 191
The Boolean Logical Short-Circuit Operators p. 192
The Equality Operators == and != p. 193
The Shorthand Operators p. 195
The Conditional Operator ?: p. 196
The String Concatenation Operator + p. 197
The Type Comparison Operator - instanceof p. 199
Apply boolean equals (Object) to Objects of java.lang.String, java.lang.Boolean, and java.lang.Object p. 202
The Ubiquitous equals() Method p. 203
Effects of Method Invocations on Objects and Primitives p. 205
Checkpoint p. 207
Review Questions p. 211
Review Answers p. 214
Flow Control p. 217
Write Code Using if and switch Statements and Identify Legal Argument Types p. 218
if-else Statement p. 218
The switch statement p. 220
Write Code Using All Forms of Loops p. 223
Definite Iteration: The for Loop p. 223
Indefinite Iteration: while and do/while Loops p. 225
The Transfer Statements: break and continue p. 227
Write Code That Makes Proper Use of Exceptions and Exception Handling Clauses p. 230
Java Statements Dealing with Exceptions p. 231
The try-catch-finally Construction p. 234
Checked and Unchecked Exceptions p. 237
The throws Clause p. 238
Restrictions on Throwing Exceptions p. 240
Exceptions in Constructors, Initializers, and Finalizers p. 241
Checkpoint p. 242
Review Questions p. 244
Review Answers p. 250
Threads p. 253
Instantiate and Start New Threads Using Both java.lang.Thread and java.lang.Runnable p. 254
Thread States p. 258
Recognize Conditions That Might Prevent a Thread From Executing p. 260
Thread Priority and Scheduling p. 264
Write Code Using synchronized, wait, notify, or notifyAll p. 266
Communicating Between Threads to Avoid Race Conditions p. 273
User and Daemon Threads p. 280
Checkpoint p. 282
Review Questions p. 285
Review Answers p. 287
Using the Java API p. 289
AWT 1: The User Interface p. 291
Using the Java API p. 289
Understanding the GUI p. 292
Program Flow p. 292
Applications p. 293
Applets p. 293
Write Code Using Components p. 294
Components p. 295
Write Code Using Containers p. 307
Write Code Using the LayoutManager Classes of the java.awt Package p. 311
Controlling the Look p. 311
CardLayout p. 320
LayoutManagers vs. Containers p. 321
Present a GUI with Specified Appearance and Resize Behavior p. 321
Keeping the Screen Clean p. 324
Checkpoint p. 334
Review Questions p. 335
Review Answers p. 339
AWT 2: Making the Screen Work p. 341
State the Event Classname for Any Specified Event Listener Interface in the java.awt.event Package p. 342
Events: What Are They? p. 342
Event Enabling p. 344
Write Code to Implement Listener Classes and Methods p. 346
Delegating to Listeners p. 347
The Standard Setup and KeyEvents p. 349
The Embedded Driver Setup p. 353
Inner Listeners p. 354
Anonymous Classes p. 355
Event Adapters p. 357
Determine the Affected Component, Mouse Position, Nature, and Time of Event p. 359
Event Information p. 359
Putting More than One Listener on a Component p. 362
Checkpoint p. 365
Review Questions p. 366
Review Answers p. 370
java.io Package p. 373
Navigate with the File Class p. 374
Overview p. 374
Checking File Attributes p. 375
Comparing Pathnames p. 375
Operating on Underlying Files p. 376
Extracting and Transforming Names p. 376
Listing Directory Contents p. 380
Use Stream Readers and Writers p. 383
Overview p. 383
Byte Stream and Character Classes p. 384
InputStreamReader p. 388
OutputStreamWriter p. 389
When to Specify the Encoding p. 389
Filter Input and Output Streams p. 392
Overview p. 393
FilterInputStream and Its Subclasses p. 394
FilterOutputStream and Its Subclasses p. 397
Read and Update Files p. 399
FileInputStream p. 399
Describe Permanent Effects on the File Systemfrom Using FileInputStream, FileOutput Stream, and RandomAccess File p. 408
Checkpoint p. 409
Review Questions p. 410
Review Answers p. 414
The java.util Package p. 417
Make Appropriate Selection of Collection Classes/Interfaces p. 419
Collections Interfaces and Classes p. 420
Mapping Interfaces and Classes p. 432
Iterators p. 439
Utility Classes p. 442
Checkpoint p. 443
Review Questions p. 444
Review Answers p. 447
About the CD-ROM p. 449
Mike Meyers' Certification Passport CD-ROM Instructions p. 449
System Requirements p. 449
Technical Support p. 450
About the Online Code Samples p. 450
Career Flight Path p. 451
Sun Certified Developer for Java 2 Platform (310-027) p. 452
Sun Certified Web Component Developer for J2EE Platform (310-080) p. 452
Sun Certified Enterprise Architect for J2EE Technology (310-051 and 310-061) p. 452
- 名称
- 类型
- 大小
光盘服务联系方式: 020-38250260 客服QQ:4006604884
云图客服:
用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问
Video Player
×
Audio Player
×
pdf Player
×
亲爱的云图用户,
光盘内的文件都可以直接点击浏览哦
无需下载,在线查阅资料!