EC22 - Java SE Programming
Duration3 Days (customisation)
Availability

Course Description

This course covers all major aspects of programming with Java using a choice of IDE (Integrated Development Environment).

It is aimed at programmers who are already able to code simple Java applications and wish to broaden their knowledge with a greater understanding of the Java API.

Covers all versions of Java up to and including Java SE 7.

Pre-requisites

An understanding of programming with Java or C++ is required. Students must be able to code simple Applications and Classes.

Knowledge of this can be gained by attending our Java Primer course EC21.

Objectives

The aim of this course is to give students a fully rounded general knowledge of programming with Java.

Whereas the Java Primer (EC21) course provides basic skills, this course moves onto more advanced topics including Collections, Generics, Threads, I/O, and Networking.

During the course the student will write many classes ensuring that the statements taught are fully understood and practical experience is gained.

The course is taught using a choice of IDE (Integrated Development Environment). The skills needed to use this software are presented as part of the course.

On completion of this course the student will be able to:

  • Take advantage of and understand Interfaces
  • Use the Collections Framework
  • Understand which type of collection to use for a specific purpose
  • Sort Objects using Comparable and Comparator interfaces
  • Create and handle Exceptions
  • Code custom Exception classes
  • Use the Java Input/Output classes
  • Understand and use Serialization to achieve persistence
  • Understand multi-threading and synchronization and use the various techniques available to create separate threads
  • Create socket based applications using the Networking classes

Environment

Development will be performed using:

  • Eclipse
  • NetBeans
  • Websphere Studio Application Developer
  • Rational Application Developer
  • JBuilder
  • the Java Development Kit (JDK) plus a text editor

Customisation

For on-site courses (i.e. at your premises), we are more than happy to tailor the course agenda to suit your exact requirements. In many cases, we are able to build your in-house standards and naming conventions into the delivered course.

Course Details

ABSTRACT CLASSES AND INTERFACES
Abstract Classes and Methods
Interfaces
Defining An Interface, Implementing An Interface
Coding To Interfaces - Polymorphism
COLLECTIONS
Collection Interfaces And Implementations
Generics
Comparison Of List, Map and Set Implementations
Queues and Deques
Legacy Collection Classes
Iterator And Enumeration Interfaces and the for-each loop
Properties
Sorting Objects With and Without Generics
The Comparable Interface, Comparators
More ways to Sort Objects:
java.util.Collections, java.util.Arrays
Collections Method Reference
INNER CLASSES
‘Regular’ Inner Classes
Referencing the Outer and Inner classes from within the Inner class
Method-Local Inner Classes
Anonymous Inner classes
THREADS & SYNCHRONIZATION
What is a Thread?
Creating Threads
Method 1 - Extending the Thread Class
Method 2 - Implementing the Runnable Interface
Controlling Threads
Thread Priority, Terminating Threads, Daemon Threads, Thread Synchronization
Java Concurrency API (Java 5)
Executor Framework - Threads Pools
Threads with Return Values – Callable and Future
Completion Service
ERROR HANDLING
Java Exceptions
Runtime and Checked Exceptions, Try / Catch Processing, The Finally Block
Java 7 Catch Blocks with Multiple Exceptions
Passing Exceptions up the Stack
The throws statement
Creating new Exceptions
The Throw Statement, Error and Exception Classes, User Defined Exceptions
Exceptions And Object Hierarchies
JAVA I/O
The Java I/O API
The File class, Input and Output Streams, Readers and Writers
NIO and Buffers
Reading from System Input
Reading and Writing Text to Files
Reading from Files Using a Scanner
Reading and Writing Data to Files
Standard Output Stream - System.out
Types of I/O classes
Buffering input/output, ByteArrays, CharArrays, DataStreams
Serialization - Persistence of Objects
JAVA7 AND NIO2
Try-With-Resources
NIO2: Path, Files
Creating, Copying, Moving, Deleting
Recursing A File Tree
FilesSystems and FileStore
File Change Notification
INTRODUCTION TO SERVER-SIDE PROGRAMMING
Overview of Server side programming
Servlets, Java Server Pages, Web Servers, Java Beans
Model, View, Controller architecture

Course Format

Practical sessions make up a large part of the course, allowing delegates to demonstrate and reinforce the lectures given. During these sessions the delegate will build a complete application, gaining in complexity throughout.

Examples are used extensively, ranging from simple code snippets to full applications with complete 'real world' functionality. These are supplied at the start of the course and it is encouraged that the delegates execute and 'experiment' with these under the instructor's guidance as they are introduced.

These examples are available to take away, along with the delegate's own work.

The comprehensive Student Guide supplied is fully indexed serving as a useful reference tool long after the course has finished. Delegates will also be able to access a free help-line with technical questions relating to topics covered on the course.