Java Fundamentals for Non-C Programmers
Java
Fundamentals for Non-C Programmers
Course
Length: 4 days, $119 per book
This
course is paced to provide a solid foundation in Java for programmers
without any C or C++ programming experience. Intensive and hands-on,
the course emphasizes becoming productive quickly as a Java programmer.
You will learn how to use Java to implement real-world solutions,
including both web applets and stand-alone applications.
Audience:
Programmers moving to object-oriented programming using Java.
Prerequisites:
Professional programming experience in a high level language.
Getting Started
What
is Java?
How to Get
Java
A First Java Program
Compiling and Interpreting Applications
Applets
Compiling and Interpreting Applets
The JDK Directory Structure
Data
Types and Variables
Fundamental
Data Types
Choosing a Data Type
Declarations
Variable Names
Numeric Literals
Character Literals
String Literals
Operators
and Expressions
Expressions
Assignment Operator
Arithmetic Operators
Relational Operators
Logical Operators
Increment and Decrement Operators
Operate-Assign Operators (+=, etc.)
The Conditional Operator
Operator Precedence
Implicit Type Conversions
The Cast Operator
Control
Flow
Statements
Conditional (if) Statements
Adding an else if
Conditional (switch) Statements
while Loops
do-while Loops
for Loops
A for Loop Diagram
The break Statement
The continue Statement
Methods
Methods
Calling Methods
Defining Methods
Method Parameters
Scope
So, Why All the static?
Java
2 Language Fundamentals
A Java
Program
Conditional Statements
Loop Statements
Syntax Details
Portable Data Types
Expressions in Java
Strings
Arrays
Assertions
Objects
and Classes
Defining
a Class
Creating an Object
Instance Data and Class Data
Methods
Constructors
Visibility Modifiers
Methods and Messages
Parameter Passing
Comparing and Identifying Objects
Destroying Objects
Using the Primitive-Type Wrapper Classes
Documentation of Classes
Inheritance
in Java
Inheritance
Casting
Method Overriding
super
Interfaces
Abstract Classes
The Object Class
Introspection
Packages
Packages
The import Statement
CLASSPATH and import
Defining Packages
Package Scope
Inner
Classes
Inner
Classes
Member Classes
Local Classes
Anonymous Classes
Instance Initializers
Nested Classes
Inheritance vs. Containment
Exception
Handling
Exceptions
Overview
Catching Exceptions
The finally BlockException
Methods
Declaring Exceptions
Defining and Throwing Exceptions
Errors and RuntimeExceptions
Chained Exceptions
Input/Output
Streams
Overview
of Streams
Bytes vs. Characters
Converting Byte Streams to Character Streams
Binary Input and Output
PrintWriter Class
Reading and Writing Objects
Streams Streams Streams
Buffers, Channels and Charsets
File and FileChannel Objects