Training Capstone Courseware

Training goals

code: CC-106 | version: v8.0

Version 8.0

This course provides advanced training in developing software using the Java Platform, Standard Edition, or Java SE. It is intended for students with solid experience in structured and object-oriented Java programming, including use of the Collections API and exception handling. Generic types should be understood, at least at a basic level; the course does begin with a refresher and then a more advanced treatment of generic types.

After a quick introduction to the Java Time API, students get familiar with the I/O streams model, file handling, and object serialization, and learn to use streams to communicate over network sockets. A two-chapter unit covers multi-threaded programming and concurrency techniques. We look at dynamic typing in Java, in the Reflection API and with dynamic proxies, and understand the underpinnings of source-code annotations.

Finally, several chapters at the end of the course introduce unit-testing and test-driven-development practices. Here for the first time we introduce external libraries -- JUnit, and the Mockito dynamic-mocking library -- and the study is not entirely about technology but leans more into design and good practice.

Learning Objectives

  • Make effective use of Java generic types.
  • 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.
  • Communicate between processes using network sockets.
  • Write multi-threaded Java applications that safely manage concurrent access to application state.
  • Use the Reflection API and dynamic proxies for highly generic tasks, discovery, or code-generation.
  • Use standard annotations and develop custom annotations to express meta-data in Java source files.
  • Build unit tests for Java classes using JUnit.
  • Write effective tests, and design classes for testability.
  • Understand test-driven development (TDD) and use dynamic mocking to support isolated testing.

Conspect Show list

  1. Generics
    • Using Generics
    • Type Erasure
    • Type Boundaries
    • Wildcards
    • Generic Methods
    • Strengths and Weaknesses of Generics
    • Legacy Code and Generics
  2. The Time API
    • A History of Time ... in Java
    • Limitations of Date and Calendar
    • The Time API
    • Temporal Types
    • Accessors and Adjusters
    • Formatting
    • Decomposition Into Fields
    • Date Arithmetic
    • Managing Precision
    • Duration and Period
    • Time Zones and Offsets
    • Converting Between Time Zones
  3. The Java Streams Model
    • Delegation-Based Stream Model
    • InputStream and OutputStream
    • Media-Based Streams
    • Filtering Streams
    • Readers and Writers
    • Byte-Array Streams
    • String Readers and Writers
    • Closing Streams, Readers and Writers
  4. Working with Files
    • The File Class
    • Modeling Files and Directories
    • File Streams
    • Working with File Systems
    • The Path Interface
    • The Paths and Files Utilities
    • Processing with java.util.stream.Streams
  5. Delegating Streams
    • Buffering
    • Data Streams
    • Push-Back Parsing
    • Byte-Array Streams and String Readers and Writers
  6. Java Serialization
    • The Challenge of Object Serialization
    • Serialization API
    • Serializable Interface
    • ObjectInputStream and ObjectOutputStream
    • The Serialization Engine
    • Transient Fields
    • readObject and writeObject
    • Externalizable Interface
  7. Sockets
    • The OSI Reference Model
    • Network Protocols
    • The Socket Class
    • The ServerSocket Class
    • Connecting Through URL Objects
    • HTTP and Other TCP Servers
    • Datagram Clients and Servers
    • Non-Blocking Sockets
  8. Threads
    • Java Thread Model
    • Creating and Running Threads
    • Manipulating Thread State
    • Thread Synchronization
    • Synchronized Blocks and Methods
    • wait and notify
    • join and sleep
    • Multi-Threading in Servers
  9. Concurrency
    • The Concurrency API
    • Semaphore and Other Synchronizers
    • Concurrent Collections
    • Atomic Operations
    • Executor and ExecutorService
    • Thread Pools
    • Parallel Processing
  10. Reflection
    • Uses for Meta-Data
    • The Reflection API
    • The ClassClass
    • The java.lang.reflect Package
    • Reading Type Information
    • Navigating Inheritance Trees
    • Dynamic Instantiation
    • Dynamic Invocation
    • Reflecting on Generics
  11. Dynamic Proxies
    • The Proxy Pattern
    • Dynamic Proxies in Java
    • Use Cases
    • The InvocationHandler Interface
    • Proxy Classes
  12. Annotations
    • Aspect-Oriented Programming and Java
    • The Annotations Model
    • Annotation Types and Annotations
    • Built-In Annotations
    • Annotations vs. Descriptors (XML)
  13. Automated Unit Testing with JUnit
    • Automated Testing
    • JUnit and Related Tools
    • The @Test Annotation
    • The Assert Class Utility
    • Test Runners
    • Lifecycle Methods
    • Expecting Exceptions
    • Test Suites
  14. Writing Tests
    • Test Granularity
    • Reusing Test Logic
    • Recording and Comparing Output
    • Test Isolation
    • Controlling the Test Environment
    • Managing Dependencies
    • Non-Invasive Testing
    • Designing for Testability
    • Factories
    • Testing and Threads
  15. Test-Driven Development
    • Writing the Test First
    • The TDD Cycle
    • Advantages of TDD
    • Resistance to TDD
    • A Case Study
  16. Mocking
    • Mock Objects in Testing
    • Mock Objects in Test-Driven Development
    • Static vs. Dynamic Mocks
    • Stubbing
    • Verifying
    • Matching and Capturing
    • Using a Spy
    • Partial Mocking
Download conspect training as PDF

Additional information

Prerequisites

Solid Java programming experience is essential -- especially object-oriented use of the language. Language features and techniques that are integral to some lab exercises include interfaces and abstract classes, threading, generics and collections, and recursive methods. Course 103, "Java Programming," is excellent preparation.

Difficulty level
Duration 5 days
Certificate

The participants will obtain certificates signed by Capstone Courseware.

Trainer

Authorized Capstone Courseware Trainer.

Other training Capstone Courseware | Java Programming

Training thematically related

Java

Programming

Contact form

Please fill form below to obtain more info about this training.







* Fields marked with (*) are required !!!

Information on data processing by Compendium - Centrum Edukacyjne Spółka z o.o.

PRICE 1100 EUR

FORM OF TRAINING ?

 

TRAINING MATERIALS ?

 

SELECT TRAINING DATE

    • General information
    • Guaranteed dates
    • Last minute (-10%)
    • Language of the training
    • English
Book a training appointment
close

Traditional training

Sessions organised at Compendium CE are usually held in our locations in Kraków and Warsaw, but also in venues designated by the client. The group participating in training meets at a specific place and specific time with a coach and actively participates in laboratory sessions.

Dlearning training

You may participate from at any place in the world. It is sufficient to have a computer (or, actually a tablet, or smartphone) connected to the Internet. Compendium CE provides each Distance Learning training participant with adequate software enabling connection to the Data Center. For more information, please visit dlearning.eu site

close

Paper materials

Traditional materials: The price includes standard materials issued in the form of paper books, printed or other, depending on the arrangements with the manufacturer.

Electronic materials

Electronic materials: These are electronic training materials that are available to you based on your specific application: Skillpipe, eVantage, etc., or as PDF documents.

Ctab materials

Ctab materials: the price includes ctab tablet and electronic training materials or traditional training materials and supplies provided electronically according to manufacturer's specifications (in PDF or EPUB form). The materials provided are adapted for display on ctab tablets. For more information, check out the ctab website.

Upcoming Capstone Courseware training

Training schedule
Capstone Courseware