Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

diff vector arraylist

Answer Posted / veerendra kumar

Here these two are belongs to Collections which are
in(java.util package),Diff is:
1.Vector:this class belongs to legasy collection framework
ArrayList:belongs to new Collection framework
2. Vector:it contains key&value pair
like:Vector v=new Vector();
v.add(0,"2");
v.add(1,"5");
ArrayList:it contains value only
3.Vector:it is Synchronized format
ArrayList:not synchronized

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the sequence of steps to write pub or sub model kind of application?

2507


What is JTS?

2358


What are the difference between RMI and CORBA?

1100


Write a singleton program?

1026


What is difference between object state and behavior?

1082


why static class in java

1756


Name the eight primitive java types.

1108


What is a modular application?

1058


What is the relationship between local interfaces and container-managed relationships?

1105


How would you detect a keypress in a jcombobox?

1124


Why do I get a duplicate name error when loading a jar file?

1128


What’s jboss cache in short?

1099


How will you pass parameters in RMI? Why do you serialize?

1222


What is the infobus?

1071


Difference between hashmap and hashtable?

1145