- Used Books
- Staff Picks
- Gifts & Gift Cards
- Sell Books
- Stores & Events
- Let's Talk Books
Special Offers see all
More at Powell's
Recently Viewed clear list
Used Trade Paper
Ships in 1 to 3 days
Programmers Guide To Java Certification 1ST Editionby Khalid Azim Mughal
Synopses & Reviews
To pass the Sun Certified Programmer for Java 2 Platform 1.4 exam (SCPJ2 1.4) you need this book. It is written for any experienced programmer (with or without previous knowledge of Java) interested in mastering the Java programming language and passing the SCPJ2 1.4 exam.
A Programmer's Guide to Java™ Certification, Second Edition, contains detailed coverage of all exam topics and objectives, helpful code examples, exercises, review questions, and several full practice exams. In addition, as a comprehensive primer to the Java programming language, this book is an invaluable reference tool for the reader.
This new edition has been thoroughly updated to focus on the latest version of the exam (CX-310-035). In particular, it contains more in-depth explanations of the syntax and usage of core language features that are now emphasized on the exam. The accompanying CD contains a version of the SCPJ2 1.4 Exam Simulator developed by Whizlabs Software, which includes several mock exams and simulates the exam-taking experience. The CD also contains the complete source code for all the examples, and solutions to the programming exercises.
What you will find in this book:
Book News Annotation:
The preparation guide for the Sun Java 2 platform exam (SCPJ2) teaches experienced programmers sound Java programming skills, the core language, and all the major APIs. Topics include using threads, building GUI with AWT and Swing components, rendering graphics, implementing applets, handling I/O streams, and generating documentation using Javadoc.
Annotation c. Book News, Inc., Portland, OR (booknews.com)
A new edition of this title is available, ISBN-10: 0321556054 ISBN-13: 9780321556059
This book allows readers to master the Java programming language, teaching them what they need to know to pass the Sun Certified Java Programmer Examination. In their approach, the authors bring the sound pedagogical teaching practices from their university environment while bearing in mind the practical result-oriented realities of the IT industry. No previous Java experience and only some programming experience is required. Readers will also find that they can use this book as a self-study guide.
"We have written A Programmer's Guide to Java Certification to allow the reader to master the Java programming language. Mastering the language should naturally culminate in the practical goal of passing the Sun Certified Programmer for Java 2 Platform exam. In addition to preparing the reader thoroughly for the exam, this book also provides comprehensive coverage of all the essential Java features and core Application Programming Interfaces that every proficient Java programmer should master." The authors What you will find in this book: x Extensive coverage of ALL the objectives defined for the Sun Certified Programmer for Java 2 Platform exam. x Easy to follow structure with chapters organized according to the exam objectives as laid out by Sun x Summaries which clearly state and differentiate the exam objectives and the supplementary objectives to be covered in each chapter x A list of Sun's objectives for the Programmer exam, and a guide to taking the exam x Numerous exam-relevant review questions to test understanding of each major topic, with annotated answers x A complete mock exam with NEW questions (not repeats of review questions) x Programming exercises at the end of each chapter, with solutions x Ample code examples to illustrate concepts, which have been compiled and thoroughly tested on multiple platforms x Screen shots which illustrate how the examples would look when run x Numerous illustrations which use the standard diagramatic notation, UML x An introduction to basic terminology and concepts in object-oriented programming x Advice on how to avoid common pitfalls in mastering the language x Platform independent coverage - platform specific details are provided where relevant Additional but relevant topics are also covered, such as using threads, building GUI with AWT and Swing components, rendering graphics, implementing applets, handling I/O streams, generating documentation using Javadoc and much more The accompanying web site includes a mock exam engine; complete source code for all the examples and the programming exercises, with solutions; links to important resources (web browsers, JDK, BDK and integrated development environments for Java); updates; additional review questions; and more.... Written for anyone with previous programming experience (although not necessarily in Java), this book's comprehensive coverage of the basic and the advanced features of the language make it as useful for experienced Java programmers aiming at certification, as for programmers learning Java for the first time.
About the Author
Khalid A. Mughal is an associate professor at the Department of Informatics at the University of Bergen, Norway. During his extensive career, he has designed and implemented many courses on Java, object-oriented system development, and compiler techniques. He has also given seminars for the IT industry. He is the principal author of Java Som Forste Programmeringssprak (Java as a First Programming Language) published by Cappelen Akademisk Forlag, 2002.
Rolf W. Rasmussen is a system developer at Vizrt, a company that develops real-time graphics systems for TV, films, and the Web. Previously, he has worked on clean room implementations of the Java class libraries. He is coauthor, with Professor Mughal, of Java Som Forste Programmeringssprak.
Table of Contents
List of Tables.
List of Examples.
List of Figures.
Writing the Second Edition.
About This Book.
Using the Book.
Book Web Sites.
Request for Feedback.
About the Authors.
Acknowledgments (First Edition).
Acknowledgments (Second Edition).
1. Basics of Java Programming.
Declaring Members: Fields and Methods.
Tenets of Java.
Sample Java Application.
Essential Elements of a Java Application.
Compiling and Running an Application.
2. Language Fundamentals.
Basic Language Elements.
Primitive Data Types.
Declaring and Initializing Variables.
Object Reference Variables.
Lifetime of Variables.
Initial Values for Variables.
Default Values for Fields.
Initializing Local Variables of Primitive Data Types.
Initializing Local Reference Variables.
Java Source File Structure.
The main() Method.
3. Operators and Assignments.
Precedence and Associativity Rules for Operators.
Evaluation order of operands.
Unary Cast Operator: (type).
Narrowing and Widening Conversions.
Type Conversion Contexts.
Simple Assignment Operator =.
Assigning Primitive Values.
Numeric Type Conversions on Assignment.
Arithmetic Operators: *, /, %, +, -.
Arithmetic Operator Precedence and Associativity.
Evaluation Order in Arithmetic Expressions.
Range of Numeric Values.
Unary Arithmetic Operators: -, +.
Multiplicative Binary Operators: *, /, %.
Additive Binary Operators: +, -.
Numeric Promotions in Arithmetic Expressions.
Arithmetic Compound Assignment Operators: *=, /=, %=, +=, -=.
The Binary String Concatenation Operator +.
Variable Increment and Decrement Operators: ++, --.
Increment Operator ++.
Decrement Operator --.
Relational Operators: <, <=, >, >=.
Primitive Data Value Equality: ==, !=.
Object Reference Equality: ==, !=.
Object Value Equality.
Boolean Logical Operators: !, ^, &, .
Operand Evaluation for Boolean Logical Operators.
Boolean Logical Compound Assignment Operators: &=, ^=, =.
Conditional Operators: &&, .
Integer Bitwise Operators: ~, &, , ^.
Bitwise Compound Assignment Operators: &=, ^=, =.
Shift Operators: <<, >>, >>>.
The Shift-left Operator <<.
The Shift-right-with-sign-fill Operator >>.
The Shift-right-with-zero-fill Operator >>>.
Shift Compound Assignment Operators: <<=, >>=, >>>=.
The Conditional Operator ? :.
Other Operators: new, , instanceof.
Passing Primitive Data Values.
Passing Object Reference Values.
Passing Array References.
Array Elements as Actual Parameters.
4. Declarations and Access Control.
Declaring Array Variables.
Constructing an Array.
Initializing an Array.
Using an Array.
Instance Methods and Object Reference this.
Class Scope for Members.
Block Scope for Local Variables.
Compiling and Running Code from Packages.
Accessibility Modifiers for Top-level Classes and Interfaces.
Other Modifiers for Classes.
Member Accessibility Modifiers.
Default Accessibility for Members.
Other Modifiers for Members.
5. Control Flow, Exception Handling and Assertions.
Overview of Control Flow Statements.
Simple if Statement.
Stack-based Execution and Exception Propagation.
Checked and Unchecked Exceptions.
Defining New Exceptions.
Exception Handling: try, catch and finally.
assert Statement and AssertionError Class.
Runtime Enabling and Disabling of Assertions.
6. Object-oriented Programming.
Single Implementation Inheritance.
Object-oriented Programming Concepts.
Overriding and Hiding Members.
Instance Method Overriding.
Static Method Hiding.
Overriding vs. Overloading.
Object Reference super.
Chaining Constructors using this() and super().
this() Constructor Call.
super() Constructor Call.
Method Prototype Declarations.
Constants in Interfaces.
Completing the Type Hierarchy.
Assigning, Passing and Casting Reference Values.
Reference Value Assignment Conversions.
Parameter Passing Conversions.
Reference Casting and instanceof Operator.
Converting References of Class and Interface Types.
Polymorphism and Dynamic Method Lookup.
Inheritance vs. Aggregation.
Choosing between Inheritance and Aggregation.
7. Nested Classes and Interfaces.
Overview of Nested Classes and Interfaces.
Static Member Classes and Interfaces.
Declaring and Using Static Member Classes and Interfaces.
Accessing Members in Enclosing Context.
Non-static Member Classes.
Instantiating Non-static Member Classes.
Accessing Members in Enclosing Context.
Accessing Declarations in Enclosing Context.
Instantiating Local Classes.
Extending an Existing Class.
Implementing an Interface.
Instantiating Anonymous Classes.
Accessing Declarations in Enclosing Context.
8. Object Lifetime.
Facilitating Garbage Collection.
Invoking Garbage Collection.
Field Initializer Expressions.
Static Initializer Blocks.
Instance Initializer Blocks.
Constructing Initial Object State.
Overview of Threads.
The Main Thread.
Implementing the Runnable Interface.
Extending the Thread Class.
Running and Yielding.
Sleeping and Waking Up.
Waiting and Notifying.
Blocking for I/O.
10. Fundamental Classes.
Overview of the java.lang package.
The Object Class.
The Wrapper Classes.
Common Wrapper Class Constructors.
Common Wrapper Class Utility Methods.
Numeric Wrapper Classes.
The Math Class.
Miscellaneous Rounding Functions.
Pseudorandom Number Generator.
The String Class.
Creating and Initializing Strings.
Reading Characters from a String.
Character Case in a String.
Concatenation of Strings.
Searching for Characters and Substrings.
Converting Primitive Values and Objects to Strings.
The StringBuffer Class.
Constructing String Buffers.
Reading and Changing Characters in String Buffers.
Constructing Strings from String Buffers.
Appending, Inserting and Deleting Characters in String Buffers.
Controlling String Buffer Capacity.
11. Collections and Maps.
The Collections Framework.
HashSet and LinkedHashSet.
ArrayList, LinkedList and Vector.
HashMap, LinkedHashMap and Hashtable.
Sorted Sets and Sorted Maps.
The Comparator Interface.
The Comparable Interface.
The SortedSet Interface.
The SortedMap Interface.
TreeSet and TreeMap.
Implementing the equals(), hashCode() and compareTo() methods.
The equals() method.
The hashCode() method.
The compareTo() method.
Working with Collections.
Synchronized Collection Decorators.
Unmodifiable Collection Decorators.
Searching in Collections.
Other Utility Methods in the Collections Class.
Utility Methods in the Arrays Class.
Appendix A. Taking the SCPJ2 1.4 Exam.
Preparing for the programmer exam.
Registering for the exam.
Obtaining an Exam Voucher.
Signing Up for the Test.
After Taking the Exam.
How the Examination Is Conducted.
The Testing Locations.
Utilizing the Allotted time.
The Exam Program.
Types of Questions Asked.
Types of answers expected.
Topics Covered by the Questions.
Moving on to the developer exam.
Appendix B. Objectives for the SCPJ2 1.4 Exam.
Appendix C. Objectives for the Java 2 Platform Upgrade Exam.
Appendix D. Annotated Answers to Review Questions.
Appendix E. Solutions to Programming Exercises.
Appendix F. Sample Exam.
Appendix G. Number Systems and Number Representation.
Binary, Octal and Hexadecimal Number System.
Converting Binary Numbers to Decimals.
Converting Octal and Hexadecimal Numbers to Decimals.
Relationship between Binary, Octal and Hex Numbers.
Converting Decimals to Binary Numbers.
Converting Decimals to Octal and Hexadecimal Numbers.
Calculating 2's Complement.
Appendix H. Using the CD.
Contents of the CD.
Installing the Programs.
Using the Programs.
What Our Readers Are Saying
Other books you might like