Course: What's New in Java 5/6 (2 days)
- Target audience:
- potential software developers
- Class size:
- 12 to 20
- Prerequisites:
- a solid understanding of the Java 2 language.
Recommended: at least 6 months Java programming experience with versions 1.2, 1.3, or 1.4.
Learn the exciting new language features introduced in Java 2 Standard Edition (J2SE) 5.0
(which are also, of course, available in J2SE 6).
You'll learn how and when to use these language
features. You'll also learn the pitfalls and pluses of each new feature
. Introduction of each new feature is accompanied by one or more hands-on
exercises.
This course is taught either with or without use of test-driven development (TDD).
This course is based on portions of Jeff Langr's book that features Java 5.0,
Agile Java.
Course Schedule
Day 1
Morning
Goals and Restrictions of the 5.0 Changes
Overview of New Features
Legacy Java Overview
Using Generics
The for Loop
Using enums
Autoboxing
Static import
Afternoon
More on enum
Variable Length Parameters (varargs)
Creating an Iterable Class
Generics (Parameterized Types)--Using HashMap, Comparable
Day 2
Morning
Generics--Creating Your Own Collection
Understanding Generics--Erasure; Limitations
Afternoon
Advanced Generic Support--extends, super, wildcards
Annotations