Intermediate/Advanced Java Programming


Course Number: JAV-104
Duration: 5 days (32.5 hours)
Format: Live, hands-on

Java Programming Training Overview

This Intermediate/Advanced Java Programming training course gives developers a review of Java foundational concepts before moving on to intermediate and advanced topics in Java and OO development. Participants learn functional programming with lambdas and streams, as well as the Java Platform Module System (JPMS). UML, Design Patterns, and the use of composition versus inheritance are taught, as is unit testing.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Solidify their Java foundational knowledge, including the important contracts of class Object
  • Understand the uses and consequences of inheritance and composition, and reinforce the role of interfaces
  • Leverage fundamental OO principles such as cohesion, coupling, and polymorphism
  • Use the JUnit testing framework and become fluent in writing assertions to verify correct program behavior
  • Understand UML modeling in class diagrams and sequence diagrams
  • Use advanced techniques for object creation, including factories and singletons
  • Use established design patterns for object composition, including Strategy, Decorator, and Facade
  • Write and use generic classes and methods
  • Leverage the use cases for inner classes and refactor existing code to use them when appropriate
  • Create and use custom annotations
  • Use reflection and how to use it
  • Understand the role of functional interfaces
  • Understand lambda expressions and method references, and use them to pass behavior (methods)
  • Use the Stream API to perform complex processing of collections and other input sources
  • Create and use Java modules, understanding module descriptors, modular JARs, exports and dependencies, and the modulepath
  • Understand the structure and behavior of the modular JDK, and how it supports modular applications as well as legacy classpath-based code
  • Migrate classpath-based applications to Java 11, understanding the stages of migration and options available

Prerequisites

All students must have a working knowledge of Java programming, including the use of inheritance, interfaces, and exceptions.

Outline

Expand All | Collapse All

Introduction: Java State of the Union
  • Java Release Cycle
  • New Java Versions
Review - Basics
  • Java Environment
  • Classes and Objects
    • Instance Variables, Methods, Constructors, Static Members
    • OO Principles: Data Encapsulation, Cohesion
    • Object Contracts: toString(), equals() and hashCode(), Comparable and Comparator
  • Packages, Enums, Arrays
  • Exceptions
  • Date and Time API
  • New Language Features
Review (Inheritance and Interfaces)
  • UML Overview
  • Inheritance
    • Definition and IS-A Relationship
    • Method Overriding, @Override
    • OO Principles: Principle of Substitutability, Polymorphism and Encapsulation of Type, Coupling, Open-Closed Principle
    • Constructor Chaining
  • Interfaces
    • Defining and Implementing, Interface Types
    • Interface Inheritance
  • New Interface Features (Java 8+)
    • Default Methods, Static Methods
    • Functional Interfaces
  • Guidelines
JUnit
  • Overview
  • Tests, Assertions, and Fixtures
    • Writing and Running Tests
    • Assertions
    • Test Fixtures, @Before and @After, @BeforeClass and @AfterClass
    • Testing for Exceptions
  • Best Practices and Test-Driven Development Overview (TDD)
Collections and Generics
  • Collections Overview
    • Generics and Type-Safe Collections
    • Diamond Operator
  • Lists, Sets, and Maps
    • Interfaces and Contracts
    • Iteration and Autoboxing
    • Utility Classes - Collections and Arrays
  • Writing Generic Classes
    • Inheritance with Generic Types
    • Wildcard Parameter Types
    • Type Erasure
Techniques of Object Creation
  • Design Patterns Overview
  • Controlling Object Creation
    • Limitations of new Operator, Alternative Techniques
  • Singleton Pattern
  • Simple Factory
  • Factory Method Pattern
  • Other Techniques
    • Named Objects, JNDI
    • Dependency Injection Frameworks
Using Composition and Inheritance Effectively
  • Inheritance and Composition - Pros and Cons
    • Composition and Delegation
    • HAS-A, USES Relationships
  • Strategy Pattern
  • Decorator Pattern
  • Façade and Other Patterns
    • Façade, Proxy, Template Method
Inner Classes
  • Overview and Motivation
    • Stronger Encapsulation, Rules and Caveats
  • Defining and Using Inner Classes
    • Member-Level, Method-Local, Anonymous Classes
  • Static Nested Classes
    • Nested Classes, Nested Interfaces, Nested Enums
Annotations
  • Overview
  • Using Annotations
    • Target and Retention Policy
    • Annotation Parameters, Parameter Shortcuts
  • Writing Custom Annotations
    • Syntax, Using the Meta-Annotations
    • Using a Custom Annotation
Reflection
  • Overview and API
    • The Class Called Class
    • Obtaining and Inspecting Class Objects
  • Working with Objects Reflectively
    • Creating Instances, Invoking Methods, Setting Field Values
Lambda Expressions
  • Functional Interfaces and Lambdas
  • Target Context
  • Using Lambda Expressions
    • Syntax, Lambda Compatibility
    • Variable Capture
    • Type Inference
  • Method References
    • Three Types of Method References
    • Refactoring Lambdas into Method References
Streams
  • Overview
    • Streams vs. Collections
    • Anatomy of a Stream
  • Understanding the Stream API
    • Intermediate Operations and Stream Pipeline
    • Java 8 Functional Interfaces: Predicate, Comparator, Function
  • Stream Processing
    • Filtering, Sorting, Mapping
    • Terminal Operations
  • Collectors
    • Concepts
    • Partitioning and Grouping
Introduction to Modules
  • Motivation and Overview
  • Types of Modules
  • Modular JDK
  • Our Approach
Working with Modules
  • Defining and Using Modules
  • Services
  • Compatibility and Migration
Conclusion

Training Materials

All Java training students receive courseware and a related textbook.

Software Requirements

  • A recent version of Windows, macOS, or Linux with at least 8 GB RAM
  • JDK 11 or later
  • The Java tool the students are likely to use after the class (Eclipse or IntelliJ IDEA are recommended)
  • Other free software - please contact us if you have purchased this class


I was able to immediately see how new techniques could be applied to my work

 Anonymous - Technology Services Organization, HQ Programs & Resources, Indianapolis, IN

Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan