Toggle navigation
See also
Home
Certification
A programmer's guide to java certification
Preface
Preface
List of Figures
List of Tables
List of Examples
Foreword
Preface
Writing the Second Edition
About This Book
Using the Book
Review Questions
Chapter Summary
Programming Exercises
Book Web Sites
Request for Feedback
About the Authors
Acknowledgments (First Edition)
Acknowledgments (Second Edition)
Chapter 1. Basics of Java Programming
1.1 Introduction
1.2 Classes
1.3 Objects
1.4 Instance Members
1.5 Static Members
1.6 Inheritance
1.7 Aggregation
1.8 Tenets of Java
Review Questions
1.9 Java Programs
1.10 Sample Java Application
Review Questions
Chapter Summary
Programming Exercises
Chapter 2. Language Fundamentals
2.1 Basic Language Elements
Review Questions
2.2 Primitive Data Types
Review Questions
2.3 Variable Declarations
2.4 Initial Values for Variables
Review Questions
2.5 Java Source File Structure
Review Questions
2.6 The 'main()' Method
Review Questions
Chapter Summary
Programming Exercises
Chapter 3. Operators and Assignments
3.1 Precedence and Associativity Rules for Operators
3.2 Evaluation Order of Operands
3.3 Conversions
3.4 Simple Assignment Operator '='
Review Questions
3.5 Arithmetic Operators: '*', '/', '%', '+', '-'
Review Questions
3.6 The Binary String Concatenation Operator '+'
3.7 Variable Increment and Decrement Operators: '++', '--'
Review Questions
3.8 Boolean Expressions
3.9 Relational Operators: <, <=, >, >=
3.10 Equality
3.11 Boolean Logical Operators: '!', '^', '&', '|'
3.12 Conditional Operators: '&&', '||'
Review Questions
3.13 Integer Bitwise Operators: '~', '&', '|', '^'
3.14 Shift Operators: <<, >>, >>>
3.15 The Conditional Operator: '?'
3.16 Other Operators: 'new', '[]', 'instanceof'
Review Questions
3.17 Parameter Passing
3.18 Passing Primitive Data Values
3.19 Passing Object Reference Values
3.20 Passing Array References
3.21 Array Elements as Actual Parameters
3.22 'final' Parameters
3.23 Program Arguments
Review Questions
Chapter Summary
Programming Exercises
Chapter 4. Declarations and Access Control
4.1 Arrays
Review Questions
4.2 Defining Classes
4.3 Defining Methods
4.4 Constructors
4.5 Scope Rules
Review Questions
4.6 Packages
4.7 Accessibility Modifiers for Top-level Classes and Interfaces
4.8 Other Modifiers for Classes
Review Questions
4.9 Member Accessibility Modifiers
Review Questions
4.10 Other Modifiers for Members
Review Questions
Chapter Summary
Programming Exercises
Chapter 5. Control Flow, Exception Handling, and Assertions
5.1 Overview of Control Flow Statements
5.2 Selection Statements
Review Questions
5.3 Iteration Statements
5.4 Transfer Statements
Review Questions
5.5 Stack-based Execution and Exception Propagation
5.6 Exception Types
5.7 Exception Handling: 'try', 'catch', and 'finally'
5.8 'throw' Statement
5.9 'throws' Clause
Review Questions
5.10 Assertions
Review Questions
Chapter Summary
Programming Exercises
Chapter 6. Object-oriented Programming
6.1 Single Implementation Inheritance
Review Questions
6.2 Overriding and Hiding Members
Review Questions
6.3 Chaining Constructors Using 'this()' and 'super()'
Review Questions
6.4 Interfaces
Review Questions
6.5 Completing the Type Hierarchy
6.6 Assigning, Passing, and Casting Reference Values
Review Questions
6.7 Polymorphism and Dynamic Method Lookup
Review Questions
6.8 Inheritance vs. Aggregation
Review Questions
Chapter Summary
Programming Exercises
Chapter 7. Nested Classes And Interfaces
7.1 Overview of Nested Classes and Interfaces
7.2 Static Member Classes and Interfaces
7.3 Non-static Member Classes
Review Questions
7.4 Local Classes
7.5 Anonymous Classes
Review Questions
Chapter Summary
Programming Exercise
Chapter 8. Object Lifetime
8.1 Garbage Collection
Review Questions
8.2 Initializers
Review Questions
Chapter Summary
Chapter 9. Threads
9.1 Multitasking
9.2 Overview of Threads
9.3 Thread Creation
Review Questions
9.4 Synchronization
Review Questions
9.5 Thread Transitions
Review Questions
Chapter Summary
Programming Exercises
Chapter 10. Fundamental Classes
10.1 Overview of the 'java.lang' Package
10.2 The 'Object' Class
Review Questions
10.3 The Wrapper Classes
Review Questions
10.4 The 'Math' Class
Review Questions
10.5 The 'String' Class
Review Questions
10.6 The 'StringBuffer' Class
Review Questions
Chapter Summary
Programming Exercises
Chapter 11. Collections and Maps
11.1 The Collections Framework
11.2 Collections
Review Questions
11.3 Sets
11.4 Lists
Review Questions
11.5 Maps
11.6 Sorted Sets and Sorted Maps
Review Questions
11.7 Implementing the 'equals()', 'hashCode()', and 'compareTo()' Methods
11.8 Working with Collections
Review Questions
Chapter Summary
Programming Exercises
Appendix A. Taking the SCPJ2 1.4 Exam
A.1 Preparing for the Programmer Exam
A.2 Registering for the Exam
A.3 How the Examination Is Conducted
A.4 The Questions
A.5 Moving on to the Developer Exam
Appendix B. Objectives for the SCPJ2 1.4 Exam
Section 1: Declarations and Access Control ( Chapter 4 )
Section 2: Flow Control, Assertions, and Exception Handling ( Chapter 5 )
Section 3: Garbage Collection ( Chapter 8 )
Section 4: Language Fundamentals ( Chapter 2 )
Section 5: Operators and Assignments ( Chapter 3 )
Section 6: Overloading, Overriding, Runtime Type and Object Orientation (Chapter 6, Chapter 11)
Section 7: Threads ( Chapter 9 )
Section 8: Fundamental Classes in the java.lang Package ( Chapter 10 )
Section 9: The Collections Framework ( Chapter 11 )
Appendix C. Objectives for the Java 2 Platform Upgrade Exam
Section 1: Declarations and Access Control
Section 2: Flow Control, Assertions, and Exception Handling
Section 3: Garbage Collection
Section 4: Language Fundamentals
Section 5: Operators and Assignments
Section 6: Overloading, Overriding, Runtime Type and Object Orientation
Section 7: Threads
Section 8: The Collections Framework
Appendix D. Annotated Answers to Review Questions
1 Basics of Java Programming
2 Language Fundamentals
3 Operators and Assignments
4 Declarations and Access Control
5 Control Flow, Exception Handling, and Assertions
6 Object-oriented Programming
7 Nested Classes and Interfaces
8 Object Lifetime
9 Threads
10 Fundamental Classes
11 Collections and Maps
Appendix E. Solutions to Programming Exercises
1 Basics of Java Programming
2 Language Fundamentals
3 Operators and Assignments
4 Declarations and Access Control
5 Control Flow, Exception Handling, and Assertions
6 Object-oriented Programming
7 Nested Classes and Interfaces
8 Basics of Java Programming
9 Threads
10 Fundamental Classes
11 Collections and Maps
Appendix F. Mock Exam
Answers to Questions
Appendix G. Number Systems and Number Representation
G.1 Number Systems
G.2 Relationship between Binary, Octal, and Hexadecimal Numbers
G.3 Converting Decimals
G.4 Representing Integers
Appendix H. About the CD
H.1 Whizlabs Exam Simulators
H.2 Items from the Book
Single-User License Agreement
Important Terms of Agreement
Tenure of the License Agreement
Limited Warranty Under the License
Remedies Provided Under the License
Liabilities Under the License
Other Limitations Under the License
General Note
Remember the name: eTutorials.org
Copyright eTutorials.org 2008-2024. All rights reserved.