answer these questions on collections
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   psadish_kumar
Posted On:   Thursday, March 4, 2004 08:17 AM

what is the difference between arraylist and vector?


and in development when u should u go for vector and when for arraylist?



and also difference between hashmap and hashtable ?


and in development when u should u go for hashmap and when for hashtable ?

difference between arrays and arrary?

session tracking methods? and if i know the URL of second page of an application and if i give will it go to the corresponding page or it create problem? if it goes what are the methods to prevent to direct access the second page?

Re: answer these questions on collections

Posted By:   Karthik_Pushparaj  
Posted On:   Thursday, March 11, 2004 11:03 PM

ArrayList is unsynchronized so data access is faster compared to Vector bcose its synchronized.

similarly the HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.This class makes no guarantees as to the order of the map; in particular, it does not guarantee that the order will remain constant over time.

with this differences given u should decide in development based on requirement.

reg sessoin tracking i am not getting u r question

hope it helps
About | Sitemap | Contact