This is my blog on java, servlets, JSP and design patterns. I started this blog just to keep my java knowledge updated and to maintain a log of the java questions that arise in my mind. Now it has turned out to be a full blown java blog and tutorial site with lots of articles and java interview questions. This might help you to keep your java knowledge updated and also to prepare for your java interview, java certifications. Its all there, I welcome you to use and enjoy it. Good day!
Recent Java Articles:
Facade Design Pattern
29/01/2012
GoF definition for facade design pattern is, “Provide a unified interface to a set of interfaces in a subsystem. Facade Pattern defines a higher-level interface that makes the subsystem easier to use.” How do we infer the above definition? Think of a component that solves a complex business problem. That component may expose lot of [...]
JVM Shutdown Hook
22/01/2012
Java JVM provides you a hook to register a thread with the shutdown initiation sequence. Once a thread is registered, on every shutdown that thread is run. JVM’s shutdown sequence has two phases. All registered shutdown hooks are started in some unspecified order and allowed to run concurrently until they finish. All un-invoked finalizers are [...]
Externalizable vs Serializable
15/01/2012
Externalizable is an interface that enables you to define custom rules and your own mechanism for serialization. Serializable defines standard protocol and provides out of the box serialization capabilities. Externalizable extends Serializable. Implement writeExternal and readExternal methods of the Externalizable interface and create your own contract / protocol for serialization. Saving the state of the [...]
serialVersionUID in Java Serialization
08/01/2012
serialVersionUID is used to ensure that during deserialization the same class (that was used during serialize process) is loaded. This is a one line definition to explain why a serialVersionUID is used? Apart from the above definition there are quite a few things to learn from this serialVersionUID. As per javadocs, following is format of [...]
Java Versions, Features and History
01/01/2012
A popular interview question in java is “what is new in Java version X?”. Is that an intelligent question is debatable. I have summarized below important new features added in each major java release till now. I target to highlight important features added in respective release. Apart from below list of features, every release has [...]
Install Java in Linux (Ubuntu / Debian)
25/12/2011
This manual is to help install java (jdk) in Ubuntu / Debian Linux. Previously we discussed about how java’s installation has evolved over a period, then I promised to write an article on installing java on Linux. Yes I love Linux! Before install you should be aware of couple of things. Which package I need [...]
Customize Default Serialization Protocol
18/12/2011
Do you know how to customize the default behaviour of the serialization protocol? Tom Cruise starrer MI4 hits theatres this week in India and we experience unusual media frenzy. In no way this is realted but by impulse I mention about MI4 here. In this article I am going to write on how to customize [...]
Object Construction in Serialization
11/12/2011
My previous article on exploring java serialization is a box office hit. In continuation to that and popular request, I am going to write on how instances are created during serialize and de-serialize process. There is a mystery. If you strongly believe that the constructor of a class is called everytime when an object is [...]
Install Java
04/12/2011
It feels great when you use a product for a long time. In your regular life there are things like a pen, a bike, a camera … which you use over and over (the same old pen, the same brand etc.) Suddenly I had a thought to install java using jdk1.1 and write a couple [...]













