1.Vector or ArrayList ?
2.HashTable or HashMap ?
3.What should i do to get the objects in the collection in the same order as i put in.?
As 1. Use Vector when u want ur Collection object to be
thread safe (safe while multiple threads invoking operations which JVM achieves by having Object level lock. No chances of data getting corrupted in the Vector). Use ArrayList when thread safety dosent matter to u (Chances of data getting corrupted if multiple threads working on the same reference).
As 2. same as above (Hashtable-thread safe, HashMap - not thread safe. Additionaly Hashtable does not permit any null key and null value, however HashMap permits single null key and null values)
As3. use LinkedHashMap,LinkedHashSet,LinkedList,Vector,ArrayList