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

In a multitiered application which tier is the browser in?

3 Answers   Adobe,


can we write implementation for a method with in another method?

3 Answers   Cap Gemini,


Describe responsibilities of Activator?

0 Answers  


Will the general public have access to the infobus apis?

0 Answers  


what is a Daemon Thread?

2 Answers  






Hello, I'm java developer. My skill is programming with java,jsp, struts, struts2+spring, hibernate, eclipse, tomcat, mysql,Oracle,Middlegen and other open source technology. I'm interest work any web base project that use my ability above. The thing is that I have never got any chance to work in this field though i am very much comfort with my skills. So if any body want me then i will happily join you. Also I have also some of my friends if you. If you interest to outsource any project to me then also you are welcome. you can reach me by email at me4bangalore@yahoo.in

4 Answers  


When is the best time to validate input?

0 Answers  


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

0 Answers  


can a static method be overridden

12 Answers   SolutionNET,


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

0 Answers  


What is the difference between a stub and a skeleton?

9 Answers   ABC, College School Exams Tests, Geoservices, Polaris, Qualcomm, Rajiv Gandhi College of Engineering and Technology RGCET, UTIITSL, Wipro,


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

2 Answers   GM General Motors,


Categories