Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Acknowledgments
Preface
Introduction
1 Packaging, Compiling, and Interpreting Java Code
Understand Packages
Package Design
package and import Statements
Exercise 1-1 : Replacing Implicit import Statements with Explicit import Statements
Understand Package-Derived Classes
Java Utilities API
Java Basic Input/Output API
The Java Networking API
Java Abstract Window Toolkit API
Java Swing API
Exercise I -2: Understanding Extended Functionality of the Java Utilities API
Understand Class Structure
Naming Conventions
Separators and Other Java Source Symbols
Java Class Structure
Compile and Interpret Java Code
Java Compiler
Java Interpreter
Exercise 1-3: Compiling and Interpreting Packaged Software
Two-Minute Drill
Self Test
Self Test Answers
2 Programming with Java Statements
Understand Assignment Statements
The Assignment Expression Statement
Create and Use Conditional Statements
The if Conditional Statement
The if-then Conditional Statement
The if-then-else Conditional Statement
The switch Conditional Statement
Exercise 2-1 : Evaluating the String Class in the switch Statement
Create and Use Iteration Statements
The for Loop Iteration Statement
The Enhanced for Loop Iteration Statement
Exercise 2-2: Iterating Through an ArrayList While Applying Conditions
The while Iteration Statement
The do-while Iteration Statement
Exercise 2-3: Performing Code Refactoring
Exercise 2-4: Knowing Your Statement-Related Keywords
Create and Use Transfer of Control Statements
The break Transfer of Control Statement
The continue Transfer of Control Statement
The return Transfer of Control Statement
The labeled Statement
Two-Minute Drill
Self Test
Self Test Answers
3 Programming with Java Operators and Strings
Understand Fundamental Operators
Assignment Operators
Exercise 3-1: Using Compound Assignment Operators
Arithmetic Operators
Relational Operators
Logical Operators
Understand Operator Precedence
Operator Precedence
Overriding Operator Precedence
Use String Objects and Their Methods
Strings
The String Concatenation Operator
Exercise 3-2: Uncovering Bugs that Your Compiler May Not Find
Methods of the String Class
Use StringBuilder Objects and Their Methods
Methods of the StringBuilder Class
Exercise 3-3: Using Constructors of the StringBuilder Class
Test Equality Between Strings and other Objects equals Method of the String Class
Exercise 3-4: Working with the compare To Method of the String Class
Two-Minute Drill
Self Test
Self Test Answers
4 Working with Basic Classes and Variables
Understand Primitives, Enumerations, and Objects
Primitive Variables
Objects
Exercise 4-1 : Compile and Run an Object
Arrays
Enumerations
Java Is Strongly Typed
Naming Conventions
Use Primitives, Enumerations, and Objects
Literals
Examples of Primitives, Enumerations, and Objects
Exercise 4-2: Creating Getters and Setters.
Two-Minute Drill
Self Test
Self Test Answers
5 Understanding Methods and Variable Scope
Create and Use Methods
Using Method Syntax
Making and Calling a Method
Overloading a Method
Pass Objects by Reference and Value
Passing Primitives by Value to Methods
Passing Objects by Reference to Methods
Understand Variable Scope
Local Variables
Method Parameters
Instance Variables
An Object’s Lifecycle
Create and Use Constructors
Making a Constructor
Overloading a Constructor
Using the Default Constructor
Use this and super Keywords
The this Keyword
The super Keyword
Create Static Methods and Instance Variables
Static Methods
Static Variables
Constants
Two-Minute Drill
Self Test
Self Test Answers
6 Programming with Arrays
Work with Java Arrays
One-Dimensional Arrays
Multi-Dimensional Arrays
Work with ArrayList Objects and Their Methods
Using the ArrayList Class
ArrayList vs. Standard Arrays
Exercise 6-1 : Implement an ArrayList and Standard Array
Two-Minute Drill
Self Test
Self Test Answers
7 Understanding Class Inheritance
Implement and Use Inheritance and Class Types
Inheritance
Overriding Methods
Abstract Classes
Interfaces
Advanced Concepts of Inheritance
Understand Encapsulation Principles
Good Design with Encapsulation
Access Modifiers
Setters and Getters
Advanced Use of Classes with Inheritance and Encapsulation
Java Access Modifiers Example
Inheritance with Concrete Classes Examples
Inheritance with Abstract Classes Examples
Exercise 7-1 : Add Functionality to the Plant Simulator
Interface Example
Two-Minute Drill
Self Test
Self Test Answers
8 Understanding Polymorphism and Casts
Understand Polymorphism
Concepts of Polymorphism
Practical Examples of Polymorphism
Exercise 8-1 : Add Functionality to the Describable Example
Understand Casting
When Casting Is Needed
Two-Minute Drill
Self Test
Self Test Answers
9 Handling Exceptions
Understand the Rationale and Types of Exceptions
Exception Hierarchy in Java
Checked Exceptions
Unchecked Exceptions
(Unchecked) Errors
Exercise 9-1 : Determining When to Use Assertions in Place of Exceptions
Exercise 9-2: Analyzing the Source Code of Java Exceptions
Understand the Nature of Exceptions
Defining Exceptions
Throwing Exceptions
Propagating Exceptions
Exercise 9-3: Creating a Custom Exception Class
Alter the Program Flow
The try-catch Statement
The try-finally Statement
The try-catch-finally Statement
The try-with-resources Statement
The multi-catch Clause
Exercise 9-4: Using NetBeans Code Templates for Exception Handling Elements
Recognize Common Exceptions
Common Checked Exceptions
Common Unchecked Exceptions
Common Errors
Exercise 9-5: Creating an Error Condition
Two-Minute Drill
Self Test
Self Test Answers
10 Working with Classes and Their Relationships
Understand Class Compositions and Associations
Class Compositions and Associations
Class Relationships
Multiplicities
Association Navigation
Class Compositions and Associations in Practice
Examples of Class Association Relationships
Examples of Class Composition Relationships
Examples of Association Navigation
Two-Minute Drill
Self Test
Self Test Answers
A Java Platforms
Java Platform, Standard Edition
The Java SE API
The Java Runtime Environment
The Java Development Kit
Supported Operating Systems
Java 2 Platform, Micro Edition
Configurations
Profiles
Optional Packages
Squawk
Java Platform, Enterprise Edition
B Java SE 7 Packages
Core Packages
Integration Packages
User Interface Packages
Security Packages
XML-based Packages
C Java Keywords
D Bracket Conventions
Java Bracket Conventions
Miscellaneous Bracket Conventions
E Unicode Standard
F Pseudo-code Algorithms
Implementing Statement-Related Algorithms from Pseudo-code
Pseudo-code Algorithms
Pseudo-code Algorithms and Java
G Unified Modeling Language
Recognizing Representations of Significant UML Elements
Classes, Abstract Classes, and Interface Diagrams
Attributes and Operations
Visibility Modifiers
Recognizing Representations of UML Associations
Graphic Paths
Relationship Specifiers
H Practice Exam
Answers
I About the Download
Steps to Download MasterExam
System Requirements
MasterExam
Enterprise Architect Project File
Help
Removing Installation
Technical Support
LearnKey Technical Support
Glossary
Index
← Prev
Back
Next →
← Prev
Back
Next →