Advanced Java Programming
Course Description
This intensive, hands-on course explores advanced Java Standard Edition language features and packages. Students will learn to parse XML documents using the JAXP API. Multi-threaded applications will be covered in detail including concepts such as deadlocks and race conditions. Students will also learn how to utilize more advanced I/O capabilities with object serialization and low-level file I/O with the java.nio package. Client/server applications will be written utilizing both the java.net and java.rmi packages. Additional topics on JNDI and performance tuning, as well as appendices on encryption and JNI, round out the course. This course is can be delivered using any required version of Java - Java 8, Java 9, Java 11, Java 13 and IDE - Eclipse, IntelliJ etc.
3 Days
Contact us for pricing
Prerequisites
Participants should have completed Intermediate Java Programming or have equivalent experience. The course is aimed at Java programmers who wish to increase their depth of knowledge in Java programming and explore the uses of the various advanced packages.Processing XML with Java – JAXP
The Java API for XML ProcessingIntroduction 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 ApplicationsThreaded Applications
Creating Threads
Thread States
Runnable Threads
Coordinating Threads
Interrupting Threads
Runnable Interface
ThreadGroups
Thread Synchronization and Concurrency
Race ConditionsSynchronized Methods
Deadlocks
Synchronized Blocks
Thread Communication — wait()
Thread Communication — notify()
Java 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 packageBuffers and Channels
Buffer Implementations
Buffer Methods
ByteBuffer Methods
FileChannel
File Locking
MappedByteBuffer
Transferring Data Between Channels
Character Sets
Reflection
Introduction to ReflectionThe Class Class
The reflect Package
Constructors
Fields
Methods
Exception Handling and Reflection
JavaBeans
Dynamic Programming
Networking with Sockets
Clients and ServersPorts, 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 ApplicationsStubs
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 ServicesNamespaces 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
Object Creation
String, StringBuffer, and StringBuilder
Synchronized
Inline methods
Tuning Collections
Advanced RMI
Client CallbacksDynamic Class Loading
Activation
Activatable Objects
Registering Activatable Objects
Security and Activation
JNDI and RMI Registry
RMI-IIOP
Native Methods
Overview of Java Native Methods and JNIHow 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
JavaJava 8Java 9Java 11Java 13EclipseIntelliJ