Instructor-led training
Advanced Java Programming(3 days) Training in Harrison, New York
This intensive, hands-on course explores advanced Java 5.0 Standard Edition language features and packages.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Harrison, New York 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
Processing 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
Introduction to Threads
Non-Threaded Applications
Threaded Applications
Creating Threads
Thread States
Runnable Threads
Coordinating Threads
Interrupting Threads
Runnable Interface
ThreadGroups
Thread Synchronization and Concurrency
Race Conditions
Synchronized Methods
Deadlocks
Synchronized Blocks
Thread Communication – wait()
Thread Communication – notify()
Java 5.0 Concurrency Improvements
Thread-Aware Collections
Executor
Callable
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
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
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
Java Performance Tuning
Is Java Slow?
Don't Optimize Until You Profile
HotSpot Virtual Machine
Garbage Collection Concepts
Garbage Collection Generations
Garbage Collection in Java 5.0
Object Creation
String, StringBuffer, and StringBuilder
Synchronized
Inline methods
Tuning Collections
Appendix A - Advanced RMI
Client Callbacks
Dynamic Class Loading
Activation
Activatable Objects
Registering Activatable Objects
Security and Activation
JNDI and RMI Registry
RMI-IIOP
Appendix B - 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
What makes this material hard to master
Most of this course is about behavior the compiler cannot check: timing, memory, wire formats and runtime lookups. The topics build on one another in a deliberate order.
- Concurrency comes first and everything else depends on it. The syllabus goes from thread states and coordination through race conditions, synchronized methods and blocks, deadlocks, and
wait()/notify(). It then moves to the Java 5.0 additions: thread-aware collections,ExecutorandCallable. A common misconception is that addingsynchronizedmakes code safe. Locking the wrong scope, or in an inconsistent order, still produces races and deadlocks. The later socket section on concurrent servers reuses all of this. - Serialization is more than saving an object. Customizing and controlling serialization, and versioning, determine whether data written by one build can be read by another. RMI parameter passing builds directly on those rules.
- New I/O changes the mental model. Buffers, channels,
FileChannel, file locking andMappedByteBufferreplace the stream-at-a-time habit. Buffer position and limit handling is where most mistakes happen. - XML has two models with different costs. SAX is event-driven and DOM builds a tree. Choosing between them, and adding validation and transformation, is a design decision rather than syntax.
- Reflection, JNDI and RMI move errors to runtime. Class lookups, bindings, stubs and class distribution fail only when the program runs.
- Performance tuning is mostly discipline. The syllabus stresses profiling before optimizing, then covers HotSpot, garbage collection generations, string handling and collection tuning.
The description and syllabus target Java 5.0. That falls within Java SE 7 and earlier, which is out of support and no longer on Oracle's support roadmap. The course therefore suits teams that maintain, support or migrate systems written in that style.
Who it suits and where it fits
The course is advanced and requires Intermediate Java Programming or equivalent experience. It fits developers who already write everyday Java and now need to work on threaded code, XML processing, socket or RMI services, or JVM behavior in an existing codebase. It also suits training managers who need a team to read and maintain that kind of code.
If a few developers on the team need a firmer base first, Fast Track to Java for OO Developers covers core object-oriented Java in three days, so the advanced topics are not learned on a weak foundation.
Teams whose standard has moved to a current release can look at Fast Track to Java 25 and OO Development for the language baseline. Organizations that want the advanced topics worked through on the Java versions they actually run can request a training proposal for private, customized delivery, onsite or live online.
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 an XML import job. A team might inherit a batch process that loads large partner files with DOM and runs out of memory. The SAX event methods, DOM parsing through JAXP, validation and transformation topics help them decide where streaming is appropriate and where a tree is needed.
- Stabilizing a threaded socket server. A service built on
ServerSocketthat creates one thread per connection might hang under load. Race conditions, deadlocks, synchronized blocks, and theExecutorandCallablematerial give a vocabulary for diagnosing the hang and a structured way to bound the thread count. - Supporting an RMI-based internal service. A team might need to change a remote interface without breaking deployed clients. Parameter passing and serialization, serialization versioning, class distribution and the JNDI and RMI registry topics all bear on that change.
- Tuning a slow batch process. Before rewriting code, a developer might apply the profile-first approach, then examine object creation,
StringversusStringBuilderuse, and collection choices alongside garbage collection generations.
AI coding assistants and these topics
AI coding assistants are useful for boilerplate here. They can draft a SAX handler, a Callable submitted to an Executor, reflection code that lists fields and methods, or a first-pass serializable class. They can also explain an unfamiliar stack trace or thread dump.
They fail in predictable ways:
- Concurrency. Code can look correct and still contain a race or a lock-ordering deadlock. Tests that pass once prove little.
- Version drift. Suggestions often use language and library features newer than the Java 5.0 style this course teaches. They may not compile in an older project, or may differ from how the surrounding code works.
- Serialization and parsing security. Generated code may deserialize untrusted data or leave XML parser settings at their defaults. Both need deliberate review.
- Tuning advice. Garbage collection and performance suggestions are often generic and tied to specific JVM versions. They conflict with the profile-first principle.
To verify the output, run it under concurrent load and read thread dumps. Round-trip serialized objects across class changes to test versioning. Review parser configuration explicitly. Measure with a profiler before and after any tuning change. Compile and run against the project's actual Java version.
Frequently asked questions
What level is this course?
It is advanced. It assumes you already write intermediate Java and moves into threading, advanced I/O, networking, RMI, JNDI, reflection and performance tuning.
What are the prerequisites?
Intermediate Java Programming or equivalent experience is required. You should be comfortable with core Java classes, exceptions and collections before starting.
What does the course cover?
JAXP with SAX and DOM, threads and synchronization, Java 5.0 concurrency features, object serialization, the java.nio package, reflection, sockets, RMI, JNDI and Java performance tuning. Appendices cover advanced RMI and native methods with JNI.
Can this course be delivered privately, onsite or online?
Yes. HSG delivers private training for organizations at the client's location or live online.
Can the content be customized to our Java version?
Private training can be tailored to the technology versions an organization uses, including current releases. Request a training proposal to discuss the topics and versions your team needs.
Training locations
Advanced Java Programming(3 days) training across the U.S. and beyond.
We provide private Advanced Java Programming(3 days) training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Advanced Java Programming(3 days) 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.