Example to illustrate the new features introduced in Java 5.