nTier’s intermediate Java training course teaches programming in the Java language – the Java 2 Standard or J2SE platform. It is intended for students with previous Java experience or training who already know the fundamentals of the Java architecture and basic procedural programming. This course provides in-depth coverage of object-oriented concepts and how to apply them to Java software design and development. The latter part of the course moves key parts of the J2SE Core API, including collections, exception-handling, logging, streams and object serialization.

Course Duration: 5 days
Prerequisites:

Students must be able to write, compile, test and debug simple Java programs using structured programming techniques, strong data types and flow- control constructs such as conditionals and loops. At least six months of Java experience is recommended.

Course Objectives:
  • Chiefly, learn to program effectively in the Java language
  • Understand Java as a purely object-oriented language, and implement software as systems of classes
  • Implement and use inheritance and polymorphism, including interfaces and abstract classes
  • Design appropriate exception handling into Java methods
  • Use the standard logging API to write diagnostic information at runtime
  • Understand the structure of streams in Java, and learn how to use streams to manage file I/O
  • Learn how to use Java Serialization to internalize and externalize potentially complex graphs of objects
Course Outline:
  • Review of Java Fundamentals
    • The Java Architecture
    • Forms for Java Software
    • Three Platforms
    • The Java Language
    • Numeric Types
    • Characters and Booleans
    • Java 5.0: Enumerations
    • Object References
    • Strings and Arrays
    • Conditional Constructs
    • Looping Constructs
    • Java 5.0: The For-Each Loop
  • Object-Oriented Software
    • Complex Systems
    • Abstraction
    • Classes and Objects
    • Responsibilities and Collaborators
    • UML
    • Relationships
    • Visibility
  • Classes and Objects
    • Java Classes
    • Constructors and Garbage Collection
    • Naming Conventions and JavaBeans
    • Packages and Imports
    • Relationships Between Classes
    • Using this
    • Visibility
    • Overloading Methods
    • JARs
  • Inheritance and Polymorphism in Java
    • Extending Classes
    • Using Derived Classes
    • Type Identification
    • Compile-Time and Run-Time Type
    • Polymorphism
    • Overriding Methods
    • Superclass Reference
  • Using Classes Effectively
    • Class Loading
    • Static Members
    • Statics and Non-Statics
    • Static Initializers
    • Prohibiting Inheritance
    • Costs of Object Creation
    • Strings and StringBuffers
    • Controlling Object Creation
  • Interfaces and Abstract Classes
    • Separating Interface and Implementation
    • UML Interfaces and Realization
    • Defining Interfaces
    • Implementing and Extending Interfaces
    • Abstract Classes
  • Collections
    • Dynamic Collections
    • Collections vs. Arrays
    • The Collections API
    • Abstraction: The Collection Interface
    • Vector, LinkedList, ArrayList
    • Reading Elements and Downcasting
    • Collecting Primitive Values
    • Algorithmic Programming
    • Iterators
    • Maps
    • Sorted Collections
    • Java 1.5: Generics
    • Java 1.5: Auto-Boxing
    • Java 1.5: Type-Safe Collections
    • Java 1.5: Variable Argument Lists
    • Java 1.5: Formatted Output
  • Exception Handling
    • Reporting and Trapping Errors
    • Exception Handling
    • Throwing Exceptions
    • Declaring Exceptions per Method
    • Catching Exceptions
    • The finally Block
    • Catch-and-Release
    • Chaining Exceptions
  • Inner Classes
    • Passing Behavior
    • Named Inner Classes
    • Outer Object Reference
    • Static Inner Classes
    • Anonymous Inner Classes
  • The Java Streams Model
    • Delegation-Based Stream Model
    • InputStream and OutputStream
    • Media-Based Streams
    • Filtering Streams
    • Readers and Writers
  • Working with Files
    • File Class
    • Modeling Files and Directories
    • File Streams
    • Random-Access Files
  • Advanced Stream Techniques
    • Buffering
    • Data Streams
    • Push-Back Parsing
    • Byte-Array Streams and String Readers and Writers
  • Java Serialization
    • The Challenge of Object Serialization
    • Serialization API
    • Serializable Interface
    • ObjectInputStream and ObjectOutputStream
    • The Serialization Engine
    • Transient Fields
    • readObject and writeObject
    • Externalizable Interface