Java Programming 2 / Java Advanced Developer

Course Code: JAVA2

Duration: 5 days

 
 
 
 

Java Programming 2 / Java Advanced Developer Course Overview.

Modern Java code extends well beyond object orientation and the associated principles. This hands-on course, delivered using Java 17, endeavours to provide a grounding in advanced topics including generics, functional programming, concurrency, annotations, reflection, and security (among others).

This course assumes you are familiar with the fundamentals of the Java language including object oriented principles, and that you can build simple applications. If not, you should consider our Java Programming 1 / Java Developer course instead.

Similarly, the course is targeted to closely follow the official Oracle Java curriculum for certification.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Course Objectives

This course aims to provide the delegate with the skills needed to build and/or maintain Java applications that exploit advanced features. It also serves as good preparation for developers seeking to contribute to enterprise level applications built with Java EE/Jakarta EE/Spring or similar.

Who will the Course Benefit?

The Java Programming 2 / Java Advanced Developer course is aimed at existing Java developers who are seeking to build on their knowledge of the fundamentals so as to make full use of the language's advanced features.

Skills Gained

The delegate will learn and acquire skills as follows:

  • Make use of and code generic classes and methods
  • Characterise the various collection types and make use of the standard implementations
  • Correctly implement hashCode and equals, and compareTo/compare
  • Code instance and static, and named and anonymous inner classes
  • Define and code lambda expressions and method references where appropriate
  • Define and characterise functional programming; describe the assoc. challenges in Java
  • Code a stream for the purpose of transforming a collection
  • Make use of custom exceptions and assertions; localise an application
  • Migrate an existing application to a modular one and create services
  • Create and spawn threads safely for the purpose of improving application performance
  • Read from and write to files using classes in both java.io and java.nio packages
  • Define annotations, make use of standard ones and create custom ones
  • Describe the purpose of reflection and write code to extract information about existing code
  • Code objects securely, handle sensitive data properly, and prevent common attacks

Java Programming 2 / Java Advanced Developer Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: GENERICS

  • Generic types
  • Generic methods
  • Bounded type parameters
  • Generics and inheritance
  • Type inference
  • Wildcards
  • Type erasure
  • Restrictions

Session 2: COLLECTIONS

  • The Collection interface hierarchy
  • Iterable and Iterator
  • Collection operations and traversal
  • The Collections class
  • Collection types (characteristics and implementations) incl. List, Set and Queue
  • The Map interface hierarchy
  • Map operations and traversal
  • Map types (characteristics and implementations)

Session 3: hashCode, equals & compareTo/compare

  • The Object class
  • Overriding toString
  • Equality and membership testing
  • Hashing collections
  • Overriding hashCode and equals
  • The Comparable and Comparator interfaces
  • Searching and sorting
  • Overriding compareTo and compare

Java Programming 2 / Java Advanced Developer Training Course

Session 4: NESTED CLASSES

  • Static nested classes
  • Inner classes
  • Shadowing
  • Local classes
  • Anonymous classes
  • Variable capture and effectively final

Session 5: LAMBDA EXPRESSIONS & METHOD REFERENCES

  • What is a lambda expression?
  • Lambda use case: collection filter
  • Lambda syntax
  • What is a method reference?
  • Method reference use case: collection sort
  • Method reference types x 4

Session 6: FUNCTIONAL PROGRAMMING

  • What is functional programming?
  • Functions as first class objects
  • Pure functions
  • Higher order functions
  • Immutable objects
  • Java's functional interfaces
  • Functional composition

Session 7: STREAMS

  • What is a stream?
  • Obtaining/creating a stream
  • Intermediate (non-terminal) operations
  • Terminal operations
  • The Optional class
  • The Collectors class
  • Stream concatenation
  • Primitive streams

Java Programming 2 / Java Advanced Developer Training Course

Session 8: EXCEPTIONS, ASSERTIONS & LOCALISATION

  • Exceptions (a review)
  • Custom exceptions
  • Try with resources
  • Assertions
  • Dates and times
  • Internationalisation and localisation
  • Resource bundles

Session 9: MODULAR APPLICATIONS

  • Modules (a review)
  • Module types
  • Analysing dependencies
  • Migrating an existing application
  • Creating a service

Session 10: CONCURRENCY

  • Low-level threading incl. Runnable, sleep, join
  • The Java memory model
  • Threading problems incl. race conditions, deadlock, and starvation
  • Immutable objects and ThreadLocal
  • Thread synchronization incl. volatile, synchronized, atomic data types, and locks

Java Programming 2 / Java Advanced Developer Training Course

Session 10 (Continued): CONCURRENCY

  • ExecutorService, thread pools, Callable, and Future
  • Concurrent and immutable collections
  • Parallel streams

Session 11: I/O

  • Files and directories
  • I/O streams
  • Common operations
  • Binary data, character data, and serialisation
  • Console I/O

Session 12: NIO.2

  • What is NIO?
  • Paths
  • Manipulating the filesystem
  • File attributes
  • Listing, traversing, and searching a directory

Java Programming 2 / Java Advanced Developer Training Course

Session 13: ANNOTATIONS

  • What is an annotation?
  • Form and application
  • Standard annotations
  • Declaring an annotation

Session 14: REFLECTION

  • What is reflection?
  • Modules, classes, constructors, fields, and methods
  • Private members
  • Annotations
  • Generics and arrays
  • Dynamic proxies
  • Dynamic class loading

Session 15: SECURITY

  • Securing objects
  • Injection and input validation
  • Handling confidential information
  • Serialising and deserialising objects
  • Sensitive objects
  • Preventing denial of service attacks
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Examinations

This Java Programming 2 / Java Advanced Developer course is an excellent choice for delegates preparing to take the following Oracle Java 8 exam:

  • Oracle Certified Professional (OCP) Java SE 8 Programmer II: 1Z0-809

This Java Programming 2 / Java Advanced Developer course together with the Java Programming 1 / Java Developer course is an excellent choice for delegates preparing to take the following Oracle Java 11 exam:

  • Oracle Certified Professional (OCP) Java SE 11 Developer: 1Z0-819

This Java Programming 2 / Java Advanced Developer course together with the Java Programming 1 / Java Developer course is an excellent choice for delegates preparing to take the following Oracle Java 17 exam:

  • Oracle Certified Professional (OCP) Java SE 17 Developer: 1Z0-829

Attending these courses and studying the associated reference material can form part of the preparation to achieve certification. Experience, practice, self-study and aptitude are also key requirements for exam success.

Before taking any exam, ensure you have the recommended experience. The Oracle website lists all exam requirements and these are updated regularly.

Exams are not included as part of the course.

Requirements

Delegates attending this course should be familiar with the fundamentals of the Java language including object oriented principles, and should be able to build simple applications. This knowledge can be obtained by attendance on the pre-requisite Java Programming 1 / Java Developer course.

Pre-Requisite Courses

Course Reviews

Brian was a wonderful instruction who gave clear explanations for topics. This course helped clear up a lot of important things that I need to know. He gave lots of individual attention and helped me understand concepts that I was struggling to understand.

Anmol - Software Engineer - Finance - November 2023


Excellent course provided by Stuart, unlike most course tutors he uses his own knowledge & experience to provide examples and to answer questions. He makes the course interesting and engaging rather than reading from boilerplate lecture notes. Couldn't recommend him enough. Look forward to doing more courses taught by him.

Nathan - Government - October 2023


This course was exceptionally taught, I now feel confident in my Java skills and I am very thankful for this course. Brian was excellent at teaching and answering questions. The assignments were especially useful.

Lesleyjane - Graduate Software Engineer - Government - July 2023


Good range of advanced topics with relevant practical examples to aid with learning.

Lewis - Finance - May 2023


It was amazing as usual.

Okoye - Software Engineer - Government


Well thought out course. Enjoyed that the requirements/parts for the Exam activity developed as I was taught new concepts. All concepts on the course were explained well as were answer to questions delegates asked.

Chadley - Pharmaceuticals


Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 5 days

Price: £2,195.00 exc. VAT 


Start Date Options Spaces  
22 Apr 2024
StayAhead Virtual Courses available 
Spaces Book Now 
10 Jun 2024
StayAhead Virtual Courses available 
Spaces Book Now 
29 Jul 2024
StayAhead Virtual Courses available 
Spaces Book Now 
16 Sep 2024
StayAhead Virtual Courses available 
Spaces Book Now 
04 Nov 2024
StayAhead Virtual Courses available 
Spaces Book Now 
16 Dec 2024
StayAhead Virtual Courses available 
Spaces Book Now 


Start Date Options Spaces  
08 Apr 2024
StayAhead Virtual Courses available 
Spaces Book Now  POA
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy