Introduction to Java for New Programmers Courseware
Length: 5 days
Webucator's Introduction to Java for New Programmers Courseware provides a complete solution for deliverying Private or Public Technical Training.
Introduction to Java for New Programmers Courseware
Webucator courseware is authored by content-area experts with a great deal of training experience. Topics are broken down into small chunks, which are explained, demonstrated with sample files or applications, and then practiced with hands-on exercises.
Courseware Overview
This Java training course is intended for students without an extensive programming
background. It covers most Java syntax elements, concentrating on fundamental
and universally useful elements, while providing an overview of many more
advanced elements. Students will learn to write useful Java classes, applying
Object-Oriented concepts such as inheritance, and create Java programs that
work with these classes.
The class introduces the concept of objects as one of the first topics, in
order that the later concepts are covered with an OO perspective. The class is
based on Java 1.5 and 1.6, but most concepts would apply in 1.4 as well.
If you have a lot of object-oriented programming experience in a language such as C# or C++, you may want to consider our Java Programming Training for Experienced Programmers class instead.
Courseware Goals
- Learn how Java works.
- Understand the "write once, run anywhere" concept.
- Understand and learn how to create basic Java objects.
- Learn how to implement flow-control concepts in Java.
- Understand Java's package concept and create packages of Java classes.
- Understand Java arrays and write code to create and use arrays.
- Learn how to write Java classes using inheritance.
- Learn how to create and use interfaces.
- Understand and use the concept of polymorphism in an application
- Understand how Java's exception-handling mechanism works and learn how to apply exception-handling to Java applications.
- Understand and use inner classes.
- Learn how to use elements from the Java API library, including the Collections classes.
Courseware Outline
- Java Introduction
- Conventions in These Notes
- The Java Environment - Overview
- Writing a Java Program
- Obtaining The Java Environment
- Setting up your Java Environment
- Creating a Class That Can Run as a Program
- The
main() Method
- Useful Stuff Necessary to go Further
-
System.out.println()
- Using the Java Documentation
- Java Basics
- Basic Java Syntax
- General Syntax Rules
- Java Statements
- Blocks of Code
- Comments
- Variables
- Data
- Primitive Data Types
- Object Data Types
- Literal Values
- Constants and the
final keyword
- Mathematics in Java
- Expressions
- Operator Precedence
- Multiple Assignments
- Order of Evaluation
- Bitwise Operators
- Compound Operators
- Expressions that Mix Data Types: Typecasting
- Creating and Using Methods
- Creating Methods
- Variable Scope
- Java Objects
- Objects
- Object-Oriented Languages
- Object-Oriented Programs
- Encapsulation
- Creating and Using an Instance of an Object
- References
- Defining a Class
- Java Beans
- Constructors
- Method Overloading
- The
this Keyword
-
static Elements
- Garbage Collection
- Java Packages
- Dealing with Keyboard Input
-
String, StringBuffer, and StringBuilder
- Creating Documentation Comments and Using javadoc
- Javadoc Comments
- Comparisons And Flow Control Structures
- Controlling Program Flow
- Boolean-Valued Expressions
- Complex
boolean Expressions
- Simple Branching
- Two Mutually Exclusive Branches
- Nested
if... elseStatements - Comparing a Number of MutuallyExclusive Options
- Comparing a Number of Mutually ExclusiveOptions - The
switchStatement
- Comparing Objects
- Conditional Expression
-
while and do. . .while Loops
-
for Loops
- Additional Loop Control:
break and continue
- Breaking Out of a Loop
- Continuing a Loop
- Classpath, Code Libraries, and Jar files
- Using
CLASSPATH
- Creating a
jar File (a Library)
- Arrays
- Arrays
- Defining and Declaring Arrays
- Instantiating Arrays
- Initializing Arrays
- Working With Arrays
- Array Variables
- Copying Arrays
- Arrays of Objects
- Enhanced
for Loops - the For-Each Loop
- Multi-Dimensional Arrays
- Multidimensional Arrays in Memory
- Example - Printing a Picture
- Typecasting with Arrays of Primitives
- Inheritance
- Inheritance
- Payroll with Inheritance
- Derived Class Objects
- Polymorphism
- Inheritance and References
- Dynamic Method Invocation
- Creating a Derived Class
- Inheritance and Access
- Inheritance and Constructors - the
super Keyword
- Derived Class Methods That Override Base Class Methods
- Inheritance and Default Base Class Constructors
- The Instantiation Process at Runtime
- Example - Factoring Person Out of Employee and Dependent
- Typecasting with Object References
- Typecasting, Polymorphism, and Dynamic Method Invocation
- More on Overriding
- Object Typecasting Example
- Checking an Object's Type: Using
instanceof
- Typecasting with Arrays of Objects
- Other Inheritance-Related Keywords
-
abstract
-
final
- Methods Inherited from
Object
- Interfaces
- Interfaces
- Creating an Interface Definition
- Implementing Interfaces
- Implementing Interfaces - Example
- Reference Variables and Interfaces
- Calling an Interface Method
- Interfaces and Inheritance
- Some Uses for Interfaces
- Interfaces and Event-Handling
- Interfaces and "Pluggable Components"
- Exceptions
- Exceptions
- Handling Exceptions
- Exception Objects
- Attempting Risky Code -
try and catch
- Guaranteeing Execution of Code - the
finally Block
- Letting an Exception be Thrown to the Method Caller
- Throwing an Exception
- Exceptions and Inheritance
-
Exception Class Constructors and Methods
- Creating and Using Your Own Exception Classes
- Rethrowing Exceptions
- Initializer Blocks
- Static Initializer Blocks
- Assertions
- Generics and Collections
- Fundamental Collections: Sets, Lists, and Maps
- Iterators
- Creating Collectible Classes
- hashCode and equals
- Comparable and Comparators
- Generics
- Basic Generics Syntax
- Bounded Types and Wildcards
- Inner Classes
- Inner Classes, aka Nested Classes
- Inner Class Syntax
- Instantiating an Inner Class Instance from Within the Enclosing Class
- Inner Classes Referenced from Outside the Enclosing Class
- Working with Inner Classes
Courseware Materials
- A printed manual with an optional custom cover.
- A zip file containing the class files to be distributed to the students.
- A zip file containing the class files and a PDF copy of the manual for the instructor to present.
Class Prerequisites
Experience in the following areas is required:
- Some prior programming experience in a procedural or object-oriented language.
Experience in the following areas would be beneficial:
- Knowledge of Object-oriented Analysis and Design (OOAD) is extremely helpful in Java (and other) programming. We recommend learning OOAD, but you can do so at any stage of your learning. It will make you a better programmer, especially in a team environment.
Technical Requirements
Our computer technical requirements and setup process is easy, with support just a click away.