Java Programming

 

 

 

Course Description

The course teaches the fundamentals of the Java2 programming language, including the syntax of the Java2 language, basic principles of object-oriented programming, exception handling, creating graphical user interfaces with the AWT (abstract windowing toolkit), the Java 1.1 event model, running threads of execution, processing streaming data, and an introduction to networked communication between client and server. Students will learn how to write standalone applications or applets viewable in web browsers. The course is designed for people who are already programmers with other languages, such as C or C++.

 

Prerequisites

Skills required prior to the course:

 

 

Highly recommended prior to course:
Course Objectives:

Upon completion of this course, a student will be able to write standalone applications and applets:

 

Duration

Four and one-half days

Java Programming Outline

Module 1: Getting Started

Overview of Java concepts

Compile and run a simple Java application

Module 2: Java Program Structure

Introduction to Object-Oriented Paradigm

Abstraction

Encapsulation

Inheritance

Polymorphism

Comments

Primitive data types

Variables

Methods

Constructors

Overloading methods

Operators

Flow-of-control

Arrays

Module 3: Classes and Inheritance

Inheritance

Superclasses and subclasses and overriding methods

Abstract classes

Interfaces

Casting reference data types

Protection

Visibility

Static methods and data

Packages

import statement

Module 4: Java Class Libraries

Introduction to using Java classes

java.lang classes

Object, String, StringBuffer, Math, Number, System,

java.math classes

BigDecimal, BigInteger

java.util classes

Date, GregorianCalendar, Random, Vector, Stack, Hashtable, Enumeration, StringTokenizer

Module 5: Exception Handling

Catching and handling exceptions

Defining exception classes

Module 6: AWT (Abstract Windowing Toolkit)

Create and design a Graphical User Interface (GUI)

GUI components (scroll bars, buttons, etc.)

Layout management (arrangement of components)

JDK 1.1 Delegation-Based Event Model

Dialogs

Menus

Rendering Graphics

Module 7: Applets

Running Java applets inside a web page

Applet methods to override

HTML and applet parameters

Displaying images (GIF and JPEG formats) and playing audio clips

Module 8: Threads

Concurrency and threads of control

Thread states

Dangers of sharing data

Using synchronization to avoid corruption

Avoiding deadlocks

Module 9: Streams

Streams and stream classes

Chaining stream objects

Reading and Writing to a File

Introduction to Serialization

Properties, including System Properties

Module 10: Networking

Creating a simple TCP client-server connection

Communication via Socket objects

Summary

Review of previous materials

Brief description of advanced topics (what to learn next):

Native Methods

JDBC

what's new in JDK 1.4

 

 

Java is a trademark of Sun Microsystems, Inc.