Lakshmi, Welcome to Javaranch, a friendly place for Java greenhorns. We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with the JavaRanch Naming Policy. Thanks Pardner! Hope to see you 'round the Ranch! [ March 07, 2003: Message edited by: Dan Chisholm ]
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Actually, Chetan M, your name is also not in line with the naming policy.
Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name. You can change your name: here. Thanks, Cindy Oh Yeah - List allows duplicates and nulls Vector allows duplicates and null (sort of - at the end) Set allows NO duplicates and up to 1 null But there is no guarantee that someone could not create a Collection that prohibits nulls. [ March 07, 2003: Message edited by: Cindy Glass ]
"JavaRanch, where the deer and the Certified play" - David O'Meara