Manta alt

YOUR IBM i TRAINING SOURCE

You must allow the browser to execute JavaScript programs if you want to view product information. If your browser is set up to execute JavaScript programs, the problem is that the product ID was incorrect. Use the menu bar above to find the desired product.

Overview

This course introduces you to the Java programming language. The course begins by describing basic Java syntax. In addition to learning the basic syntax rules for coding Java statements and the basic organization of every Java program, you will see how to include comments in a Java program, how to declare a class, how to code the import and package statements, and how to declare and invoke a method. The course then takes a look at Java variables. You will see that various data types that Java supports and learn how to declare a Java variable and assign a value to a Java variable.

This course next looks at the conditional execution control structures -- such as the If/Else and Do While structures -- that Java supports. This is followed by an introduction to object oriented programming. This discussion uses easy-to-understand Java examples to illustrate the concepts of encapsulation, instantiation, inheritance, and polymorphism. Next, the course looks at some of the slightly more sophisticated data structures supported by Java. These include arrays, vectors, and mutable (modifiable) strings. The course ends with a discussion of how to work with and manipulate dates.

Approximate Study Time: 3 hours

Objectives

After completing this course, you should be able to:

  • Describe the basic syntax rules for coding Java statements
  • Code comments in a Java program
  • Describe the basic organization of a Java source program
  • Declare a class
  • Code the import and package statements
  • Declare a method
  • Invoke a method
  • Name and describe the Java-supported data types
  • Declare a Java variable
  • Assign a value to a Java variable
  • Implement the following control structures in a Java program:
    • If
    • If/Else
    • Case
    • Do While
    • Do Until
    • For
  • Define the following object-oriented programming terms:
    • Encapsulation
    • Instantiation
    • Inheritance
    • Polymophism
  • Code the Java statements to create an object
  • Code a class that can be used as an object
  • Use the methods in a class to manipulate a corresponding object
  • Define the following Java-related terms:
    • Constructor
    • Method overloading
    • Method overriding
  • Declare, instantiate, and manipulate an array, a vector, a mutable string, and a Date object

Topic Outline

Java Syntax

The Basics of Java Variables

Conditional Processing

Introduction to Object-Oriented Programming

Arrays, Vectors, and Mutable Strings

Working with Dates

Audience

This course is intended for IBM i programmers new to the Java programming language. It is also appropriate for anyone wanting a basic introduction to Java.

Prerequisites

This course assumes that you are familiar with computer programming concepts. In order to satisfy this prerequisite, you should have some experience with another programming language.

This course also assumes that you have a working knowledge of basic IBM i concepts and facilities. You can satisfy this prerequisite by successfully completing the courses in the following series:

Finally, the course assumes you have a basic understanding of Java concepts and the Java environment. You can satisfy this prerequisite by successfully completing the first course in this series: