Levi, Ray & Shoup, Inc.
  • Courses
  • Site Content

AT1016 - Introduction to Java

The Introduction to Java Programming course teaches students: the syntax of the Java programming language; Object-Oriented Programming using Java; exception handling; file input/output (I/O); JSP, Servlets; and EJB; and, optionally, creating Graphical User Interfaces (GUIs) using AWT and Swing. Students will learn how to develop Java applications and, optionally, how to develop applets.

Click here to print this page »

Prerequisites

  • Students should have some basic-level knowledge of programming in any programming language.

Detailed Class Syllabus


1. Introduction


Overview
History of Java
Goals of Java
Java Virtual Machine
Garbage Collection
Hello World Example
Source File Layout

2. Java Basics


Overview
Comments
Semicolon and White Spaces
Blocks
Keywords
Primitive Data Types
Identifier
Variables
Literals
Arithmetic Operators
Bitwise Operator
Assignment Operators
Miscellaneous Operators
Scope of a Variable
Arrays
Multidimensional Arrays
Reading from the Keyboard

3. Branching and Looping


Overview
Conditions
The if Statement
The if . . . else Statement
Logical Operators and if...else Statement
The switch Statement
The while Statement
The do . . . while Statement
The for loop
Break and Continue

4. Arrays


Arrays
Declaring Arrays
Creating Arrays
Accessing Arrays
Initializing Arrays
Multidimensional Arrays
Copying Arrays

5. Objects


Overview
Object-Oriented Programming
Methods
Overloading
Creating an Instance of a Class
Constructors
Inheritance
The super Keyword
The this Keyword
Overriding
Using == vs. equals()
The toString() Method
Static Initializers
Access Modifiers
Creating Constructors/Methods

6. Advanced Class Concepts


Overview
Inner Classes/Nested Classes
Abstract Classes
Interfaces

7. Exceptions


Overview
What is Exception?
Benefits
How to work with exception
The try . . . catch . . . finally Statement
Flow of Program Control
Checked Exceptions
Unchecked Exceptions
Catching Multiple Exceptions
Rethrowing Exceptions
Exception thrown by a Method
The Exception Class
Creating your Own Exceptions

8. Stream I/O


Overview
File I/O
The File Class: Methods & Example
Input Stream: Methods
Output Stream: Methods
DataInputStream and DataOutputStream
DataInputStream Methods
DataOutputStream Methods
FileInputStream and FileOutputStream
FileInputStream Methods
FileOutputStream Methods
FileInputStream/DataOutputStream Example
FileInputStream/DatInputStream Example
Reader and Writer: Why Use Readers and Writers and Example

9. Servlets


Overview
Java Servlets
Responsibilities of a Servlet
Hello World Servlet
Retrieving Form Fields
Session Tracking

10. JavaServer Pages (JSPs)


Overview
What are JavaServer Pages
JSP Benefits
How JSP Works
Implicit Objects
Hello JSP World - an Example
JSP Directives
Attributes of Page Directive
Retrieving Form Fields
Session Tracking
Servlet to JSP Communication
Invoking a JSP

11. EJB


Overview
Needs for EJB
What are EJBs?
Characteristics of EJBs
The EJB Architecture
EJB Server
EJB Container
EJB Classes and Interfaces
Enterprise Java Beans: FlowLayout, BorderLayout, GridLayout

Appendix A. AWT


Foundations of AWT: Components, Container, Layout Manager
Common Layout Manager: FlowLayout, BorderLayout, GridLayout

Appendix B. AWT Event


Foundations of AWT: Components, Container, Layout Manager
Common Layout Manager: FlowLayout, BorderLayout, GridLayout

Appendix C. AWT Components


The Component Class
Containers and Components

Appendix D. JFC


What is JFC?
Swing
Swing Hierarchy
Building GUI with Swing
Converting AWT to Swing
JComponent
Limitations of Swing

Appendix E. Applet


What is an Applet?
Applet vs. Application
Applet Security
Writing an Applet
Lifecycle of an Applet
First Applet: Applet class and Basic HTML for an Applet
Appletviewer
Applet tags
Applet and AWT