Java Training

  • Curriculum
  • OVERVIEW

Java Introduction

Conventions in These Notes

    1. The Java Environment – Overview
    2. Writing a Java Program
    3. Obtaining The Java Environment
    4. Setting up your Java Environment
    5. Creating a Class That Can Run as a Program
      1. The main() Method
    6. Useful Stuff Necessary to go Further
      1. System.out.println()
    7. Using the Java Documentation

Java Basics

  • Basic Java Syntax
    1. General Syntax Rules
    2. Java Statements
    3. Blocks of Code
    4. Comments
    5. Variables
  • Data
    1. Primitive Data Types
    2. Object Data Types
    3. Literal Values
    4. Constants and the final keyword
  • Mathematics in Java
    1. Expressions
    2. Operator Precedence
    3. Multiple Assignments
    4. Order of Evaluation
    5. Bitwise Operators
    6. Compound Operators
    7. Expressions that Mix Data Types: Typecasting
  • Creating and Using Methods
    1. Creating Methods
    2. Variable Scope
  • Java Objects
    1. Objects
      1. Object-Oriented Languages
      2. Object-Oriented Programs
      3. Encapsulation
      4. Creating and Using an Instance of an Object
      5. References
      6. Defining a Class
      7. Java Beans
      8. Constructors
      9. Method Overloading
      10. The this Keyword
      11. static Elements
      12. Garbage Collection
      13. Java Packages
      14. Dealing with Keyboard Input
  • String, StringBuffer, and StringBuilder
  • Creating Documentation Comments and Using javadoc
      1. Javadoc Comments
  • Comparisons And Flow Control Structures
    1. Controlling Program Flow
      1. Boolean-Valued Expressions
      2. Complex boolean Expressions
      3. Simple Branching
      4. Two Mutually Exclusive Branches
      5. Nestedif… elseStatements – Comparing a Number of MutuallyExclusive Options
      6. Comparing a Number of Mutually ExclusiveOptions – The switchStatement
      7. Comparing Objects
      8. Conditional Expression
      9. while and do. . .while Loops
      10. for Loops
  • Additional Loop Control: break and continue
    1. Breaking Out of a Loop
    2. Continuing a Loop
  • Classpath, Code Libraries, and Jar files
    1. Using CLASSPATH
    2. Creating a jar File (a Library)
  • Arrays
    1. Defining and Declaring Arrays
    2. Instantiating Arrays
    3. Initializing Arrays
    4. Working With Arrays
    5. Array Variables
    6. Copying Arrays
    7. Arrays of Objects
  • Enhanced for Loops – the For-Each Loop
  • Multi-Dimensional Arrays
    1. Multidimensional Arrays in Memory
    2. Example – Printing a Picture
  • Typecasting with Arrays of Primitives
  • Inheritance
    1. Payroll with Inheritance
    2. Derived Class Objects
  • Polymorphism
    1. Inheritance and References
    2. Dynamic Method Invocation
  • Creating a Derived Class
    1. Inheritance and Access
    2. Inheritance and Constructors – the super Keyword
    3. Derived Class Methods That Override Base Class Methods
    4. Inheritance and Default Base Class Constructors
    5. The Instantiation Process at Runtime
  • Example – Factoring Person Out of Employee and Dependent
  • Typecasting with Object References
    1. Typecasting, Polymorphism, and Dynamic Method Invocation
    2. More on Overriding
    3. Object Typecasting Example
    4. Checking an Object’s Type: Using instanceof
    5. Typecasting with Arrays of Objects
  • Other Inheritance-Related Keywords
    1. abstract
    2. final
  • Methods Inherited from Object
    1. Interfaces
    2. Creating an Interface Definition
    3. Implementing Interfaces
      1. Implementing Interfaces – Example
    4. Reference Variables and Interfaces
      1. Calling an Interface Method
    5. Interfaces and Inheritance
    6. Some Uses for Interfaces
      1. Interfaces and Event-Handling
      2. Interfaces and “Pluggable Components”
  • Exceptions
    1. Exceptions
      1. Handling Exceptions
      2. Exception Objects
    2. Attempting Risky Code – try and catch
    3. Guaranteeing Execution of Code – the finally Block
    4. Letting an Exception be Thrown to the Method Caller
    5. Throwing an Exception
    6. Exceptions and Inheritance
      1. Exception Class Constructors and Methods
    7. Creating and Using Your Own Exception Classes
    8. Rethrowing Exceptions
    9. Initializer Blocks
      1. Static Initializer Blocks
      2. Assertions
  • Inner Classes
    1. Inner Classes, aka Nested Classes
      1. Inner Class Syntax
      2. Instantiating an Inner Class Instance from Within the Enclosing Class
      3. Inner Classes Referenced from Outside the Enclosing Class
      4. Working with Inner Classes

This Java training course is intended for learners 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.

Java Training Class 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.
Content 3 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.
Content 4 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.