A Template method pattern provides a skeleton for performing any sort of algorithm or an operation, and it allows the sub-classes to re-define part of the logic. Let us directly get into an example to clarify things in a much better manner. For example, if we wish to write a String Decorator class, which decorates [...]
Author Archives | Christy
Using the new Process Builder class
August 21, 2007
We all know how to execute programs from within a Java Application by making use of the Runtime Api. For example, assume that we want to launch the Internet Explorer browser within the Java code. Then the following code snippet will just do that, ProcessLauncher.java 1 2 3 4 5 6 7 8 9 10 [...]
HashCode and equals methods
August 21, 2007
HashTable, HashMap and HashSet are the Collection classes in java.util package that make use of hashing algorithm to store objects. In all these Collection classes except HashSet, objects are stored as key-value pairs. For the storage and the retrieval of any user-defined objects it is a good practice to override the following methods which is [...]
Introduction to Spring Web Framework
August 3, 2007
1) Introduction Today, the Principle of Inversion of Control has gained much popularity and Spring is a Light-Weight Framework that adopts this principle extensively for Building Java or J2ee Applications. In most of the times an Application never wants to gain access to all the services provided by the heavy-weight J2ee Container, but still will [...]






August 21, 2007
0 Comments