logo

Java Course

course overview

Click to View dates & book now

Overview

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.

Audience

This course is intended for programmers who are interested in adding Java to their skills.

Skills Gained

  • Java Basics
  • Branching and Looping
  • Objects
  • Advanced Class Concepts
  • Exceptions
  • Stream I/O
  • Servlets
  • JavaServer Pages
  • Enterprise JavaBeans

Extensive practical exercises take students through all major aspects of the design and development of Java programs.

  • Apply OOP principles
  • Design OO applications using abstraction, encapsulation, modularity, and hierarchy
  • Create applications (and, optionally, applets)
  • Use Java Exceptions to guarantee graceful error recovery of your application
  • Do input/output using Java
  • Create and use inner classes in your program to be concise and clear
  • Create Servlets and JSPs
  • Optionally, develop GUI using AWT and Swing with event handling

Prerequisites

Students should have some basic-level knowledge of programming in any programming language. Duration Five days.

Outline

Outline of Introduction to Java using JBuilder 2006 Training 1. Orientation

  • Introduction
  • Overview of JBuilder
  • Java Basics
  • Branching and Looping
  • Arrays
  • Objects
  • Advanced Class Concepts
  • Exceptions
  • Stream I/O
  • Servlets
  • Java Server Pages
  • Enterprise Java Beans Programming - Overview

2. Introduction

  • Overview
  • History of Java
  • Goals of Java
  • Java Virtual Machine
  • The JVM - Continued
  • Garbage Collection
  • Hello World An Example
  • Java Versions
  • Summary

3. Overview of JBuilder 2006

  • Objectives
  • History of JBuilder
  • The JBuilder family
  • JBuilder Foundation Edition
  • JBuilder Developer Edition
  • JBuilder Enterprise Edition
  • CodeInsight and ErrorInsight
  • Key Features in JBuilder Enterprise Edition
  • Enterprise Application Development in JBuilder Enterprise Edition
  • Web Development in JBuilder Enterprise Edition
  • Web Services in JBuilder Enterprise Edition

4. Java Basics

  • Comments
  • Semicolons and White Spaces
  • Blocks
  • Identifier
  • Keywords
  • Primitive Data Types
  • Logical - boolean
  • Textual char and String
  • Integral byte, short, int, long
  • Floating Point - float and double
  • Understanding Objects
  • Creating a New Type
  • Creating an Object
  • Wrapper Classes for Primitive Types
  • JVM Storage Areas
  • Scope of a Variable
  • Arithmetic Operators
  • Using Arithmetic Operators
  • Assignment Operators
  • Logical Expressions
  • Short-Circuit Logical Operators
  • String Concatenation with +
  • Bitwise Operators
  • Bitwise Example
  • Conditional Expression
  • Casting
  • Packages
  • Console I/O

5. Branching and Looping

  • Conditions
  • The if Statement
  • The if Statement An Example
  • The if .. else Statement
  • Logical Operators and the if..else Statement
  • The switch Statement
  • The switch Statement An Example
  • The while Statement
  • The while Statement An Example
  • The do while Statement
  • The do while Statement An Example
  • The for loop
  • The for loop An Example
  • For-each loop
  • Break and Continue
  • The break Example
  • The continue Example
  • Labeled break Example
  • Labeled continue Example

6. Objects

  • Object Oriented Programming
  • Creating your own Data Type
  • Class Members
  • Methods
  • Writing a Method An Example
  • Calling a Method An Example
  • Pass-by-Value
  • The this keyword
  • Data Hiding
  • Encapsulation
  • Overloading
  • Constructing and Initializing Objects
  • Constructors
  • Invoking an Overloaded Constructor
  • Default Constructor
  • Inheritance
  • Inheritance An Example
  • Constructors Are Not Inherited
  • Polymorphism
  • Conditions for Polymorphism
  • The super Keyword
  • The instanceof Operator
  • Casting Objects
  • Overriding
  • Invoking Parent Class Constructors

7. Arrays

  • Creating Arrays
  • Accessing Arrays
  • Initializing Array
  • Multidimensional Arrays
  • Copying Arrays

8. Advanced Class Concepts

  • Objective
  • Static Class Variables
  • Class vs. Instance Variables
  • Static Class Methods
  • Static Initializers
  • The final Keyword
  • Abstract Classes
  • Abstract Class An Example
  • Interface
  • Interface An Example
  • Access Modifiers
  • Using == vs. equals()
  • The toString() method
  • Covariant Return Types
  • Inner/Nested Classes
  • Kinds of Inner Classes
  • Inner Classes - an Example
  • Generics
  • Generics-Example

9. Exceptions

  • What is an Exception
  • Benefits
  • How to Work With Exception
  • An Example
  • 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 Exception

10. Stream I/O

  • File I/O
  • The File Class
  • File Example
  • Input Stream
  • Input Stream Methods
  • Output Stream
  • Output Stream Methods
  • DataInputStream & DataOutputStream
  • DataInput Stream
  • DataOutputStream
  • FileInputStream & FileOutputStream
  • FileInputStream Methods
  • FileOutputStream
  • FileOutputStream/DataOutputStream
  • FileInputStream/DataInputStream
  • Reader and Writer
  • Why use Reader and Writer ?
  • Reader Example

11. Servlets

  • Java Servlet
  • Responsibilities of a Servlet
  • The Servlet Life Cycle
  • The Servlet Life Cycle-Cont d
  • First Servlet - HelloWorld
  • Retrieving Form Fields
  • Retrieving Form Fields an Example
  • Session Tracking
  • Session Tracking an Example

12. JavaServer Pages (JSP)

  • What are JavaServer Pages
  • JSP Benefits
  • How JSP Works
  • JSP Invocation
  • First JSP hello.jsp
  • Invoking hello.jsp
  • Compiled JSP Servlet Code
  • JSP Expressions
  • JSP Scriptlets
  • JSP Scriptlet An Example
  • Implicit Objects
  • Hello JSP World An Example
  • JSP Directives
  • Attributes of Page Directive
  • Page Directive An Example
  • Retrieving Form Fields An Example
  • Session Tracking - An Example
  • Servlet to JSP Communication

13. Enterprise JavaBeans Programming Overview

  • Needs for EJB
  • What are EJBs?
  • Characteristics of EJBs
  • The EJB Architecture
  • EJB Server
  • EJB Containers
  • EJB Classes and Interfaces
  • Enterprise JavaBeans
  • Session Beans
  • Entity Beans

14. The AWT

  • Abstract Window Toolkit
  • Foundations of AWT
  • Components
  • Containers
  • Creating an Empty Frame
  • Layout Manager
  • Adding a Component
  • Absolute Positioning
  • Common Layout Manager
  • FlowLayout
  • BorderLayout
  • GridLayout

15. The AWT Event Model

  • The AWT Event Model
  • Terminology
  • Event Handling
  • How to implement?
  • Multiple Event Source
  • Multiple Listener
  • Event Adapters
  • Which to Use?
  • How to Use?
  • Inner Class
  • Continuation of Inner Class
  • Anonymous Class

16. AWT Components

  • AWT Components
  • The Component class
  • Container and Components
  • Button
  • Code - Button
  • Label
  • Code - Label
  • Text Components
  • TextField
  • Code - TextField
  • TextArea
  • Code Text Area
  • Checkbox
  • Code - Checkbox
  • CheckboxGroup
  • Code - CheckboxGroup
  • Choice
  • List
  • Code - List
  • Canvas
  • Code - Canvas
  • Menu Components
  • Code Menu Components

17. Java Foundation Classes (JFC)

  • Java Foundation Class (JFC)
  • What is JFC?
  • Swing
  • Swing Hierarchy
  • Building GUI with Swing
  • Swing Code
  • More on Swing Code
  • To Convert AWT to Swing
  • JComponent
  • Limitations of Swing

18. Applets

  • Applet
  • What is an Applet?
  • Applets vs. Applications
  • Applet Security
  • Writing an Applet
  • Life Cycle of an Applet
  • Our First Applet
  • Basic HTML for an Applet
  • AppletViewer
  • AWT Painting
  • Applet Tags
  • Example of Reading Parameters
  • Applet and AWT
  • Applets and AWT (continued)
  • More on Applet Tag

Talk to an expert

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. Its a cost effective option. One on one training can be delivered too, at reasonable rates.

Submit an enquiry from any page on this site, and let us know you are interested in the requirements box, or simply mention it when we contact you.

All $ prices are in USD unless it’s a NZ or AU date

SPVC = Self Paced Virtual Class

LVC = Live Virtual Class

Please Note: All courses are availaible as Live Virtual Classes

Trusted by over 1/2 million students in 15 countries

Our clients have included prestigious national organisations such as Oxford University Press, multi-national private corporations such as JP Morgan and HSBC, as well as public sector institutions such as the Department of Defence and the Department of Health.