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.5 hours
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:
- Do While
- Do Until
- Define the following object-oriented programming terms:
- 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:
- Method overloading
- Method overriding
- Declare, instantiate, and manipulate an array, a vector, a mutable string, and a Date object
The Basics of Java Variables
Introduction to Object-Oriented Programming
Arrays, Vectors, and Mutable Strings
Working with Dates
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.
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: