Skip to main content

Instructor-led training

Introduction to Java Training in Gary, Indiana

This Java training course covers most Java syntax elements, concentrating on fundamental and universally useful elements, while providing an overview of many more advanced elements.

What you'll learn

This Java training course 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. Early in the class the concept of objects is introduced so that later concepts can be discussed from the perspective of object orientation. The class is based on Java 1.5 and 1.6, but most concepts would apply in 1.4 as well.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Gary, Indiana or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

This course is intended for students without an extensive programming background. 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.

Course Outline

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.
    
    
    
    
    Class 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
                Nestedif... 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
 

What makes introductory Java hard to master

Java's syntax is small. The difficulty is that a beginner has to absorb a new way of organizing code while learning the syntax. The syllabus handles this by introducing objects early, in the Java Objects module, so that later topics can be read from an object-oriented point of view. The topics build in this order:

  • Language basics. Primitive and object data types, operator precedence, typecasting, methods and variable scope.
  • Objects and references. Classes, constructors, overloading, this, static elements and garbage collection. Beginners often treat a variable holding an object as the object itself. The syllabus returns to references when it covers copying arrays and comparing objects.
  • Flow control, packages and classpath. Branching, loops, switch, CLASSPATH and creating a jar file.
  • Inheritance and polymorphism. This is usually the steepest part. Constructors and super, overriding, dynamic method invocation, typecasting with object references and instanceof all interact, and the syllabus covers the runtime instantiation process.
  • Interfaces, exceptions, collections and inner classes. Checked exceptions, finally and custom exception classes. Sets, Lists and Maps, hashCode and equals, Comparable and Comparators. Generics with bounded types and wildcards. Inner class syntax.

Common misconceptions include using == where equals is needed, expecting a copied array variable to duplicate the data, and overriding equals without hashCode so that collections misbehave. The course description says it is based on Java 1.5 and 1.6, which falls under Java SE 7 and earlier, a range listed as out of vendor support. It suits organizations that maintain or migrate code from that era.

Who it suits and where to go next

The course is for people without an extensive programming background: new developers, career changers, and support or QA staff who need to read and write Java. The syllabus assumes no prior Java and starts with obtaining and setting up the environment and writing a class with a main() method.

Developers who already have substantial object-oriented experience in a language such as C# or C++ may find this pace slow. The 3-day Fast Track to Java for OO Developers is aimed at that audience.

After this course, learners who need to work on newer releases can move to Fast Track to Java 25 and OO Development. Java SE 25 is a long-term-support release, supported until September 2033. For deeper language work, Advanced Java Programming builds on the foundations taught here.

The full set of options is in the Java Programming courses and learning guide.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Modeling a payroll domain. A team might model hourly and salaried employees with a shared base class. The syllabus's inheritance module covers this with a payroll example and with factoring a common Person class out of other classes. Polymorphism then lets one loop process every employee type through overridden methods.
  • Removing duplicate records. A developer might load customer records into a Set and find duplicates surviving. The cause would be missing equals and hashCode implementations, both of which are in the Generics and Collections module. Generics keep the collection type-safe, and Comparable or a Comparator controls sort order.
  • A file-import utility. A support engineer might write a small tool that reads input and must clean up resources on failure. This uses try/catch, a finally block and a custom exception class. Packaging the shared code as a jar on the classpath lets other tools reuse it.

AI coding assistants and this material

AI coding assistants can explain a compiler error, draft a class from a description, and suggest javadoc comments. For a learner, they are most useful after an attempt, to explain what went wrong.

They fail in predictable ways on these topics:

  • They often produce syntax from newer Java releases. That code may not compile in a codebase targeting the Java 1.5/1.6 era the course is based on.
  • They may omit generics or misuse wildcards, and they may override equals without hashCode.
  • They may catch Exception broadly or swallow exceptions, hiding the behavior the exceptions module teaches.
  • They may use inheritance where an interface fits better, or the reverse.

To verify, compile and run against the JDK version the project actually targets. Write a small main() test for each class that exercises equality, sorting and exception paths. Read any generated hierarchy to check that overriding and constructor chaining behave as intended. A learner who has not yet traced references and polymorphism by hand will struggle to judge generated code, which is why this course teaches those topics first.

Frequently asked questions

What level is this course?

It is introductory and runs 5 days. It starts with setting up the Java environment and writing a first program with a main() method, and it is written for students without an extensive programming background.

Do I need prior programming experience?

Extensive experience is not required. Developers with deep object-oriented experience in a language such as C# or C++ may prefer a faster-paced Java course.

What does the course cover?

Syntax and data types, classes and objects, flow control, packages, classpath and jar files, arrays, inheritance and polymorphism, interfaces, exceptions, generics and collections (Sets, Lists, Maps), and inner classes.

Which Java version does it use?

The course description says it is based on Java 1.5 and 1.6, which falls under Java SE 7 and earlier, an out-of-support range. The course suits teams maintaining or migrating code from that era. Organizations on newer releases can ask about customized private training.

Can it be delivered privately and customized?

Yes. HSG provides private training for organizations, onsite or live online, and course content can be customized, including to the Java versions a team uses. You can request a training proposal.

Training locations

Introduction to Java training across the U.S. and beyond.

We provide private Introduction to Java training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Introduction to Java training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.