I have added a new project called Java Examples to my Software page. This project contains the source code used as examples in the following articles:
- Working with Java 5 Annotations
- Parsing and Generating XML with Java
- Advanced Uses of Java 5 Enums
- A Tale of Bad Exception Handling in Finally Blocks in Java
- Automatically Populating Audit Columns in Hibernate
- Simple XML Parsing using JAXB
- Tips for Using Log4j
- Exposing Mutable Objects as Public Properties
- Understanding Java RMI: A Simple Tutorial
- Java-Based Configuration of Spring Dependency Injection
Code is formatted using a non-standard coding convention to display better on the website. Code is generally written with minimal comments or error-handling: it is intended for educational purposes and not necessarily for production use.
If you find this article helpful, please make a donation.