
Java 2 Exam Prep, Second Edition / Edition 2
by Bill B. Brogden, William B. Brogden, Marcus Green, Marcus GreenISBN-10: 1588801403
ISBN-13: 9781588801401
Pub. Date: 08/31/2001
Publisher: Coriolis Value
Overview
Java 2 Exam Prep, 2nd Edition is the updated and revised version of one of our best selling titles in the Exam Prep series. This content-rich and highly detailed book gives the reader not only thorough test preparation for the Sun Certified Java Programmer, Java 2 exam (310-025), but also serves as a valuable on-the-job reference. The book covers key test content and objectives like learning Java language fundamentals, creating Java classes, building GUIs with the AWT Components, and working with flow control and exceptions. Exam Prep study guides add even more value to the reader with real-world projects and examples, a CD containing 50 realistic practice test questions, and a feature that allows free electronic downloads of additional questions.
Product Details
- ISBN-13:
- 9781588801401
- Publisher:
- Coriolis Value
- Publication date:
- 08/31/2001
- Series:
- Exam Prep Series
- Edition description:
- 2ND BK&CDR
- Pages:
- 640
- Product dimensions:
- 7.88(w) x 9.62(h) x 1.91(d)
Table of Contents
Exam Insights | xxv | |
Self-Assessment | xxxv | |
Chapter 1 | Introduction to Java | 1 |
Java Design Principles | 2 | |
History of Java | 3 | |
Java Tools | 4 | |
Sun's Java Certification Exam | 6 | |
Get a Java Job | 7 | |
Chapter 2 | Java Language Fundamentals | 13 |
The Structure of Java Programs | 14 | |
Java Reserved Words | 17 | |
Java Variables and Data Types | 18 | |
Class Basics | 25 | |
Interface Basics | 28 | |
Sun's Software Development Kit | 28 | |
Conventions for Applications | 30 | |
Conventions for Applets | 33 | |
Javadoc Format Documentation | 36 | |
Chapter Summary | 37 | |
Chapter 3 | Java Operators with Primitives and Objects | 47 |
Numeric Operators | 48 | |
Logical and Bitwise Operators | 55 | |
Logical Operators | 58 | |
Logical Operators with Objects | 60 | |
String Operators: A Special Case | 64 | |
Expression Evaluation | 66 | |
Casting and Converting of References | 67 | |
Array Declaration, Initialization, and Conversion | 68 | |
Chapter Summary | 70 | |
Chapter 4 | Creating Java Classes | 85 |
Creating Java Classes | 86 | |
Declaring a Java Class | 86 | |
Constructors | 98 | |
Static Members and Variables | 101 | |
The this Keyword | 106 | |
Automatic Variables | 109 | |
Method Signatures | 113 | |
Inner Classes | 113 | |
Chapter Summary | 118 | |
Chapter 5 | Flow Control and Exceptions | 135 |
Loops with for, while, and do | 136 | |
Branching with if--else and switch | 140 | |
Summary of Basic Flow Control | 142 | |
Exceptions, Errors, and Flow Control | 143 | |
Exceptions, try, catch, and finally | 146 | |
Designing Programs with Exceptions | 147 | |
Chapter Summary | 148 | |
Chapter 6 | Program Architecture with Java Classes and Objects | 167 |
Extending Classes and Implementing Interfaces | 168 | |
Overriding Methods | 170 | |
Overloading Methods | 173 | |
Abstract Classes in Program Design | 174 | |
More about Interfaces | 175 | |
The Class Class | 177 | |
The final Problem | 178 | |
Class Design and Encapsulation | 178 | |
Design Patterns and Java | 179 | |
Memory Management in Java | 182 | |
Chapter Summary | 185 | |
Chapter 7 | Java Threads | 201 |
Multitasking vs. Multithreading | 202 | |
The Thread Class | 203 | |
Thread Groups | 210 | |
Synchronizing Objects and Threads | 211 | |
Using wait and notify | 215 | |
Hazards of Thread Programming | 217 | |
Exceptions Associated with Threads | 218 | |
Chapter Summary | 218 | |
Chapter 8 | Standard Java Library | 235 |
The Core Classes | 236 | |
The Extended Math Classes | 247 | |
The Utility Classes | 248 | |
The Original Collections | 251 | |
The Advanced Collections Classes | 257 | |
Chapter Summary | 265 | |
Chapter 9 | Java AWT and JFC Components | 279 |
What Is on the Exam? | 280 | |
An Overview of Java Graphical Interfaces | 280 | |
The Java AWT Packages | 282 | |
The Component Class | 283 | |
The Container Class | 287 | |
Menu-Related Classes | 294 | |
Graphics-Related Classes in the AWT | 297 | |
Event-Related Classes in the AWT | 303 | |
User Interfaces with Swing Classes | 304 | |
A Summary of User Controls with AWT and Swing | 311 | |
Chapter Summary | 312 | |
Chapter 10 | Building GUI Applications with Layout Managers | 329 |
The Layout Manager Concept | 330 | |
Specialized Containers | 341 | |
Chapter Summary | 344 | |
Chapter 11 | Java Event Handling | 361 |
A Brief History of Java Event Handling | 362 | |
The Event Hierarchy | 364 | |
Generating Events | 370 | |
Event Listeners | 371 | |
Coordinating Events with Actions | 375 | |
Chapter Summary | 376 | |
Chapter 12 | Java Graphics | 399 |
Introduction to Graphics | 400 | |
The Graphics Class | 400 | |
Drawing Text | 406 | |
The Graphics2D Class | 410 | |
Printing | 411 | |
Working with Images | 414 | |
Chapter Summary | 418 | |
Chapter 13 | Java I/O | 431 |
Dealing with IOException | 432 | |
How Java Treats Files | 432 | |
Stream Methods | 438 | |
Filtering Input Streams | 443 | |
Readers and Writers | 445 | |
Object Serialization | 448 | |
JAR and Zip Files | 450 | |
Networks, Sockets, TCP/IP, and Datagrams | 451 | |
Talking to Serial and Parallel Ports | 454 | |
Chapter Summary | 455 | |
Chapter 14 | Advanced Java Topics | 467 |
The Big Picture | 468 | |
Java 2 Micro Edition | 469 | |
Java 2 Standard Edition | 472 | |
Java 2 Enterprise Edition | 474 | |
Chapter 15 | Sample Test | 485 |
Chapter 16 | Answer Key | 523 |
Appendix A | Answers to Review Questions | 535 |
Appendix B | Objectives for Exam 310-025 | 555 |
Appendix C | Study Resources | 557 |
Appendix D | Java Programming and Debugging Hints | 561 |
Glossary | 567 | |
Index | 591 |
Customer Reviews
Average Review: