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

Why a client should be multithreading? Explain.

1035


What is the difference between long.class and long.type?

1003


what are getters and setters in Java with examples?

1733


Why doesn’t the focus feature on the tag work in every circumstance?

1035


To what value is a variable of the string type automatically initialized?

1081


Should synchronization primitives be used on bean methods?

1004


Write a program to show synchronization?

1089


How to implement RMI in Java?

2833


What are the pros and cons of detached objects?

932


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

998


Why are some of the class and element names counter-intuitive?

1059


Explain about RMI Architecture?

1028


What are callback interfaces?

1052


Is the session factory thread safe?

1124


What restrictions are placed on the location of a package statement within a source code file?

1059