What is the difference between Vector, Array and Arraylist

Showing Answers 1 - 8 of 8 Answers

jagadish kumar

  • Jul 13th, 2005
 

1.Vector and Arraylist are grownable or shinkable where are array is not. 
2.Vector and Arraylist are implemented from List interface where as array is a primitive data type 
3.Vector is Synchrnized where as arraylist is not 
4.For best performance better to use arraylist than vector 
 
 

  Was this answer useful?  Yes

DEVINDER

  • Aug 27th, 2005
 

BUT WE CAN Synchrnized the arraylist manually

  Was this answer useful?  Yes

kanth

  • Jun 8th, 2006
 

Array is not a primitive data type in Java, It is a reference data type. Please refer to the java tutorial on sun website for clarification.

Sanjeev Chaubey

  • Jun 12th, 2006
 

u must read books. u r creating Confusion for other....

  Was this answer useful?  Yes

Sundeep sharma

  • Oct 10th, 2006
 

In Java, arrays are objects. Arrays can be of primitive data types or reference types.

  Was this answer useful?  Yes

snehakesri

  • Mar 20th, 2009
 

One more point :
Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions