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

Do I have to use jsps with my application?

1065


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2249


How would you detect a keypress in a jcombobox?

1185


What are the different types of exception?

1076


what is a portable component?

2067


What is meant by method chaining?

1200


What method is invoked to cause an object to begin executing as a separate thread?

1092


Name three component subclasses that support painting?

1122


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

2295


Can constructors be synchronized in java?

1171


what are the advantages of JTA over JTS?

2286


What is a modular application? What does module-relative mean?

1116


Why a client should be multithreading? Explain.

1131


What class is the top of the awt event hierarchy?

1157


What are the different class loaders used by jvm?

1148