Raja - it's generally considered pretty poor form around here to post the same question in multiple forums. Two people have spent time answering your one (extremely vague) question. May I suggest that you brush up on HowToAskQuestionsOnJavaRanch.
Joined: Mar 22, 2005
Since the question is not really related to performance, let's continue the discussion in the duplicate post.