3 Day – Java Web Server Fundamentals

A 3 day introduction to the fundamentals of developing Java applications on a web server. The course covers core language syntax and packages, an introduction to object oriented programming (OOP) and development techniques including logging and unit testing. The Spring Boot framework is used as an example deployment environment for simple REST web endpoints.

Prerequisites

A basic knowledge of least one programming language sufficient to understand and use if statements, case (or switch) statements, loops and functions is required. Knowledge of Java is not required.

Learning Objectives

To introduce staff to the basic syntax of Java appropriate to developing Spring Framework web services:

  • Understanding Java syntax, primitive data types and objects
  • Using flow control statements, functions and annotations
  • Manipulating generic collections and arrays
  • Working with exceptions
  • Unit testing and test driven development
  • Configuring the Spring Boot framework

Delivery

This course comprises a mix of theory, demonstrations and hands on exercises. Approximately 50%
of the time is hands-on.

Day 1 – Core Language

  • Basic Java syntax
  • Packages and imports
  • Java primitives
  • Objects and garbage collection
  • IF and SWITCH statements
  • WHILE and FOR loops
  • BREAK and CONTINUE statements
  • Methods parameters and return values
  • Javadoc and other comments
  • String manipulation and formatting
  • Generic collections
  • Interface v implementation
  • Arrays
  • Annotations

Day 2 – OO Development

  • Exception handling
  • Maven dependency management
  • Using logging
  • Unit testing with JUnit
  • Objects and constructors
  • Attributes and properties
  • Inheritance
  • Abstract classes and Interfaces
  • Anonymous classes

Day 3 – Java Web Services

  • Inheritance
  • Abstract classes and Interfaces
  • Anonymous classes
  • Building a Spring boot web server
  • Using Spring REST annotations
  • Dependency Injection
  • URL mapping and request variables