Java Best Practices and Design Patterns Training

Answers to Popular Questions:

Yes, this class can be tailored to meet your specific training needs.
Yes, we provide Java Programming consulting services.
Yes, group discounts are provided.

Course Description

Java programmers with experience with databases and with object-oriented programming techniques, will learn to create more complex and advanced programs using Java SE 7.
Course Length: 4 Days
Course Tuition: $2090 (US)


Students should be skilled and experienced in using Java. They should have knowledge of database structures and terminology. Also, they should be familiar with object-oriented programming

Course Outline

Upon successful completion of this course, students will be able to:
Create and manage custom classes.
Control program flow by writing code to respond to specific criteria.
Implement object-oriented programming techniques to create reusable and reliable programs.
Work with Java utility class libraries.
Use the capabilities of the Java I/O package to read and write data to external files or media.
Use collection APIs in Java to manage data.
Use generics to enforce compile-time type checking.
Use multi-threaded programs to help handle multiple tasks concurrently.
Manage Java applications for memory efficiency and create distributable versions of a Java application.
Effective Programming in Java
• Clarifying the goals of best practices
• Identifying the key characteristics of high-quality software
• Organizing classes, packages and subsystems into layers
• Designing to the principles of SOLID
Applying Test-Driven Development
Exploiting a testing framework
• Composing and maintaining JUnit tests
• Taking advantage of advanced JUnit features
• Testing in the presence of exceptions
Monitoring software health using logging libraries
• Configuring logging with log4j and SLF4J
• Minimizing the impact of logging on performance
Creating matchers and mock objects
• Writing custom Hamcrest matchers
• Testing with fake objects and mocks
Leveraging Design Patterns
Employing common design patterns
• Observer
• Iterator
• Template method
• Strategy
• State
• Singleton
• Data Accessor Object
• Data Transfer Object
• Composite
• ServiceLocator
• Proxy
• Factory
Refactoring legacy code
• Identifying reasons to change software
• Clarifying the mechanics of change
• Writing tests for legacy classes and methods
Extending Applications with Java Meta Programming
Improving type safety with generics and enum types
• Creating generic classes and methods
• Navigating generic class hierarchies
• Implementing enum types for fixed sets of constants
Adding metadata by writing annotations
• Leveraging the built-in and custom annotations
• Annotating with meta-annotations
Modifying runtime behavior with reflection
• Retrieving class and method data dynamically
• Flagging methods with naming conventions
• Adding information to code with annotations
• Assessing disadvantages of reflection
Tuning for Maximum Performance
Measuring and improving performance
• Assessing response time
• Conducting load and stress tests
• Specifying strategies for improving performance
Exploiting garbage collectors
• Exploring garbage collection metrics
• Choosing appropriate algorithms for garbage collection
• Avoiding the hazards of finalizers
• Preventing memory leaks with reference types
Taking full advantage of threads
• Writing reliable thread-safe code
• Avoiding race hazards and deadlocks
• Employing the Executors framework
Bulletproofing a threaded application
• Synchronizing and sharing data between threads
• Managing the performance implications of synchronization
Exploring alternatives to synchronization
• Taking advantage of the volatile modifier
• Eliminating data sharing with ThreadLocal variables
Architecting for Separation of Concerns
Allocating responsibilities to components
• Translating method calls with the adaptor pattern
• Adding behavior with a proxy
Centralizing the creation of objects
• Employing factories to achieve loose coupling
• Implementing Inversion of Control (IoC)

Course Directory [training on all levels]

Upcoming Classes
Gain insight and ideas from students with different perspectives and experiences.

Interesting Reads Take a class with us and receive a book of your choosing for 50% off MSRP.