Instructor-led training
Advanced Java Programming Training in Evans, Colorado
Client/server applications can be written utilizing both the java.net and java.rmi packages.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Evans, Colorado or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
Advanced I/O - Object Serialization
What is Serialization?
Serializable Objects
Writing an Object
Reading an Object
Handling Exceptions
Customizing Serialization
Controlling Serialization
Versioning
Advanced I/O - New I/O
The java.nio package
Buffers and Channels
Buffer Implementations
Buffer Methods
ByteBuffer Methods
FileChannel
File Locking
MappedByteBuffer
Transferring Data Between Channels
Character Sets
Reflection
Introduction to Reflection
The Class Class
The reflect Package
Constructors
Fields
Methods
Exception Handling and Reflection
JavaBeans
Dynamic Programming
Advanced JDBC
JDBC SQL Escape Syntax
The execute() Method
Batch Updates
Updatable Result Sets
Large Objects
Working with Savepoints
RowSets
CachedRowSets
DataSources
Networking with Sockets
Clients and Servers
Ports, Addresses and Protocols
The Socket Class
Communication Using I/O
Servers
The ServerSocket Class
Concurrent Servers
The URL Class
The URLConnection Class
Remote Method Invocation
Distributed Applications
Stubs
Steps to Create a Remote Object
An RMI Client
An RMI Server
RMI Classes and Interfaces
Class Distribution
RMI Utilities
Parameter Passing and Serialization
Advanced RMI
Client Callbacks
Dynamic Class Loading
Activation
Activatable Objects
Registering Activatable Objects
Security and Activation
JNDI and RMI Registry
RMI-IIOP
Managing Security Policies
Untrusted Code
Security Managers
The Java Security Model
Policy Entries
Policy Files
Using the Policy Tool
Securing Applets
Securing Applications
Keys, Signatures, and Certificates
Jar Files
Data Security Concerns
Message Digests
Digital Signatures
Using keytool
Using jarsigner
Certificates
Certificate Chains
Managing Keys and Certificates
Security Policies for Signed Code
Encryption with the javax.crypto Package
Cryptography Concepts
Encryption Keys
Cipher Algorithms
Modes and Padding Schemes
The Cipher Class
Encrypting and Decrypting Data
Cipher Output Stream
Cipher Input Stream
Encryption using Password Ciphers
Exchanging Encrypted Keys
Sealed Objects Java Authentication and Authorization Service (JAAS)
Authentication and Authorization
JAAS Overview
LoginContext
Subjects, Principals, and PrivilegedActions
Authentication with the NTLoginModule
Defining Permissions in Policy Files
KeyStoreLoginModule
Callbacks
NameCallback and PasswordCallback
The Policy Class
Java Naming and Directory Interface (JNDI)
Naming and Directory Services
Namespaces and Contexts
Naming Operations
Bindings
Attributes
Directory Operations
DNS Lookups with JNDI
JNDI in J2EE
Parsing XML with Java - JAXP
The Java API for XML Processing
Introduction to SAX Parsing
SAXParser and JAXP
SAX Event Methods
Introduction to DOM
Parsing DOM with JAXP
The DOM API
Validation
Transformation
Native Methods
Overview of Java Native Methods and JNI
How to Create and Use Native Methods
Native Method Declaration
Using javah
Creating the Implementation Code
Compilation
Distribution
Using the Native Methods
JNI
Passing Arguments
Calling Java Methods in Native Code
JNI Signatures
Java Design Patterns - Creational Patterns
What are Design Patterns?
What are Creational Patterns?
Singleton - Introduction
Singleton - Implementation
Singleton - When to Use?
Factory Method - Introduction
Factory Method - Implementation
Factory Method - When to Use?
Builder - Introduction
Builder - Implementation
Builder - When to Use?
Java Design Patterns - Structural Patterns
What are Structural Patterns?
Facade - Introduction
Facade - Implementation
Facade - When to Use?
Adapter - Introduction
Adapter - Implementation
Adapter - When to Use?
Composite - Introduction
Composite - Implementation
Composite - When to Use?
Java Design Patterns - Behavioral Patterns
What are Behavioral Patterns?
Template - Introduction
Template - Implementation
Template - When to Use?
State - Introduction
State - Implementation
State - When to Use?
Observer - Introduction
Observer - Implementation
Observer - When to Use?
Appendix A JDBC SQL Programming
Error Checking and the SQLException Class
The SQLWarning Class
JDBC Types
Executing SQL Queries
ResultSetMetaData
Executing SQL Updates
Using a PreparedStatement
Parameterized Statements
Stored Procedures
Transaction Management
Appendix B Eclipse
Introduction to Eclipse
Installing Eclipse
Running Eclipse for the First Time
Editors, Views, and Perspectives
Setting up a Project
Creating a New Java Application
Running a Java Application
Shortcut Key Sequences
More Shortcut Key Sequences
Setting the Classpath
Importing Existing Java Code into Eclipse
What makes this material hard to master
This course is broad rather than deep in one place. The difficulty is that each block opens a different part of the platform, and several blocks depend on earlier ones.
- Serialization is the base for remote work. Serializable objects, customizing and controlling serialization, and versioning come first. They return in RMI's parameter passing, in sealed objects, and in the security material. A common misconception is that serialization is just a way to save objects to disk. Class evolution, transient state and custom read/write logic are where the real problems are.
- Low-level I/O and reflection change how you think about data. Buffers, channels, file locking,
MappedByteBufferand character sets are a different model from stream I/O. Reflection (constructors, fields, methods, exception handling, dynamic programming) moves errors from compile time to runtime. - Distributed code adds failure modes. Sockets, concurrent servers and
URLConnectionlead into RMI: stubs, remote objects, client callbacks, dynamic class loading and activation. Network, class-distribution and policy problems all surface as runtime errors. - Security is the largest block and the most layered. Policy files and security managers come first, then message digests, signatures, certificate chains,
keytoolandjarsigner. Next arejavax.cryptociphers, modes and padding, and then JAAS (LoginContext, subjects, principals, callbacks). Learners often treat encryption, signing and authorization as one topic, but each answers a different question. - Integration APIs and native code. Advanced JDBC (batch updates, updatable result sets, savepoints,
RowSets), JNDI, SAX and DOM parsing with JAXP, and JNI with its type signatures each have their own vocabulary. - Design patterns close the course. Creational, structural and behavioral patterns (Singleton, Factory Method, Builder, Facade, Adapter, Composite, Template, State, Observer) are easier to judge once you have seen the earlier APIs. Each is presented with when to use it, which matters because overusing patterns is a common mistake.
The syllabus names Java SE 7 and earlier, which is out of support according to the lifecycle information. The course therefore suits teams that maintain or migrate systems built on those releases.
Who it suits and where it fits
This is a five-day, advanced course. The stated prerequisite is either Java Programming or Java Fundamentals for Non-C Programmers, so you should already be comfortable writing and debugging core Java: classes, interfaces, exceptions and basic I/O. It suits developers who maintain or extend existing Java applications that use RMI, sockets, JDBC, JAXP or JAAS. It also suits training managers who want a team to share one grounding in these APIs before a maintenance or migration effort.
The appendices cover JDBC SQL programming and basic Eclipse use. They can help people whose database or IDE experience is thin, but they are reference material rather than the core of the week.
The Java Programming courses and learning guide show how the Java offerings fit together, which helps if you are unsure whether you meet the prerequisite. Organizations running newer Java releases can ask for a private course tailored to the versions they use through a training proposal.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Maintaining a distributed internal service. A team might inherit an application that exposes remote objects through RMI and passes complex objects between processes. The syllabus topics on stubs, parameter passing and serialization, class distribution, callbacks and the RMI registry with JNDI would help them trace failures. Serialization versioning would help them change a class without breaking existing clients.
- Hardening a file-exchange tool. A developer might need to sign a distributed jar, protect payloads and restrict what loaded code may do. That draws on
jarsigner,keytool, certificate chains, policies for signed code, andCipherstreams with password-based encryption. - Bulk data movement and legacy integration. A batch process might load large volumes into a relational database and read XML feeds. It would use JDBC batch updates, savepoints and transaction management, together with SAX or DOM parsing and validation through JAXP. If part of the logic lives in a C library, the JNI sections on declarations, signatures and calling Java from native code apply.
AI coding assistants with these topics
AI coding assistants are useful for boilerplate here: socket client and server skeletons, JDBC batch loops, SAX handler stubs, or a first draft of a Builder or Observer implementation. They can also explain an unfamiliar reflection or JNDI call in existing code.
They fail in predictable ways for this material:
- Version mismatch. Assistants tend to suggest APIs and idioms from newer Java releases, or mix styles. Code for a Java SE 7-era codebase must be checked against the release the project actually builds on.
- Security code that compiles but is unsafe. Generated cipher code may pick a weak algorithm, mode or padding, hard-code keys, or skip certificate validation. Review each choice against the cryptography concepts in the syllabus. Generated deserialization code can also be exposed to insecure deserialization, so restrict what can be read.
- Concurrency and resource handling. Concurrent servers need correct thread handling, and channels, sockets and result sets need to be closed. Generated code often omits one or both.
- JNI and RMI details. Native signatures and policy-file entries are easy to get subtly wrong, and the errors appear only at runtime.
To verify, write tests that exercise failure paths, run the code under the project's real policy and classpath settings, and have a person who understands the security model review every generated cryptographic or policy change.
Frequently asked questions
What level is this course?
It is an advanced, five-day course. It assumes you can already write core Java programs and moves quickly through I/O, reflection, networking, RMI, security, JNDI, JAXP, JNI and design patterns.
What do I need to know before attending?
The stated prerequisite is either Java Programming or Java Fundamentals for Non-C Programmers. You should be comfortable with core Java syntax, classes, exceptions and basic I/O.
What does the course cover?
Topics include object serialization, NIO, reflection, advanced JDBC, sockets, RMI, security policies, keys, signatures and certificates,javax.crypto encryption, JAAS, JNDI, JAXP (SAX and DOM), JNI, and creational, structural and behavioral design patterns. Appendices cover JDBC SQL programming and Eclipse.
Can this be delivered privately for my team, onsite or online?
Yes. HSG delivers private training for organizations either onsite at the client's location or live online.
Can the content be customized?
Private courses can be customized, including being tailored to the Java versions your organization uses. You can describe your needs in a training proposal request.Training locations
Advanced Java Programming training across the U.S. and beyond.
We provide private Advanced Java Programming training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Advanced Java Programming training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.