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

Answers were Sorted based on User's Feedback



diff vector arraylist..

Answer / lipu

Both classes are serializable.See the java doc for
clarification.
Please dont misguide readers

Is This Answer Correct ?    6 Yes 0 No

diff vector arraylist..

Answer / mahendar

vector is syncronized ,where as array list is not
syncronized

Is This Answer Correct ?    0 Yes 1 No

diff vector arraylist..

Answer / 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

diff vector arraylist..

Answer / chandra

1) Arraylist is not synchronised while vector is
synchronised.

2) ArrayList doesn’t have a constructor for specifying the
incremental capacity, where as Vector has a constructor to
specify the initial capacity and incremental capacity.

3) Vector is serialized but arraylist is not.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Advanced Java Interview Questions

Where we can write Rmi registry in the code, without having to write it at the command prompt?

0 Answers  


What is Introspection?

2 Answers  


Why use POJO when I can use hashmap

0 Answers   Infotech,


How JNDI is used in JMS ?

1 Answers  


What is the difference between session and entity beans?

0 Answers  


What is JTS?

0 Answers  


What is Remote Server?

0 Answers   TCS,


can a static method be overridden

12 Answers   SolutionNET,


Explain about RMI Architecture?

0 Answers  


How to add new JTabbed pane?

1 Answers  


what is the proxy pattern?

1 Answers  


Why are my checkboxes not being set from on to off?

0 Answers  


Categories