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

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

0 Answers  


what are JSP tags? what is difference between include action and directory?

0 Answers   ADP,


What are the purpose of introspection?

0 Answers  


what is DGC?

1 Answers  


How messaging services are done, before release of JMS?

0 Answers  






Difference between hashmap and hashtable?

0 Answers  


can any one tell me how to learn good coding techniques

3 Answers  


what is activation monitor and what is its job?

1 Answers  


hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?

19 Answers  


What value does read() return when it has reached the end of a file?

0 Answers  


What is Introspection?

2 Answers  


how to create Calculator GUI using Gridbaglayout as like as Window Calculator??????????? (Open calculator Go-->Run-->type calc-->Enter)

1 Answers   TCS,


Categories