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

What is a compilation unit?

1 Answers  


When a thread blocks on i/o?

0 Answers  


What is bean? Where can it be used?

0 Answers  


whats is mean by filter?

1 Answers   SolutionNET,


What is servlet preinitialization

1 Answers   iFlex,






What are the different class loaders used by jvm?

0 Answers  


what is Activation Instantinator?

0 Answers  


What you mean by COM and DCOM?

0 Answers  


In connection pool,when 100 clients are requesting, in pool 100 objects is there, when another client is making request how it will work

3 Answers  


In HashTable I am storing null value..then what is the error it will show

2 Answers   GM General Motors,


What is the difference between java class and bean?

0 Answers  


Brief description about local interfaces?

0 Answers  


Categories