3 Answers - Sort by: Date | Rating
Vector and ArrayList are very similar. Both of them represent a 'growable array', where you access to the elements in it through an index.
ArrayList it's part of the Java Collection Framework, and has been added with version 1.2, while Vector it's an object that is present since the first version of the JDK. Vector, anyway, has been retrofitted to implement the List interface.
The main difference is that Vector is a synchronized object, while ArrayList is not.
ArrayList it's part of the Java Collection Framework, and has been added with version 1.2, while Vector it's an object that is present since the first version of the JDK. Vector, anyway, has been retrofitted to implement the List interface.
The main difference is that Vector is a synchronized object, while ArrayList is not.
1
0
1. Arraylist is not synchronized while vector is.
2. Arraylist has no default size while vector has a default size of 10.
3. We can specify the increment size with the vector and with array list we cannot.
Thanks
Samit Katiyar
2. Arraylist has no default size while vector has a default size of 10.
3. We can specify the increment size with the vector and with array list we cannot.
Thanks
Samit Katiyar
0
0
Guest
answered 6 months ago
Guest
answered 5 months ago
- How To Get Java On My Lg 260?
- Write A Java Program To Store A Number Find If It Is Positive Or A Negative Number If Positive Print I Am The First?
- How To Update The Sim 3 Expansion?
- What Is An Attribute In Java?
- Do I Have To Write A Main Method In Every Class I Create?
- What How The Step For Make Library Management?
- In Which Process We Can Start Java?
- Define The Concept Of Java Byte Code?
- How To Run Remote Method Invocation In More Machine?
- How To Run Java Remote Method Invocation In More Machine?
- How To Make A Java Program That Will Ask The User To Input A Number And Display All The Even Number And The Sum Of All Even Numbers Based On The Inputted/ Given Numbers?
- Is A Static Variable An Instance?
- How To Compile And Run Java Package?
- What Does Literati-on Mean?
- What Is Abstract Class In Details?
- What Is Meant By Remote Method Invocation In Java?
- What Is Meant By Servlet In Java?
- What Is Latest Technologies In Java?
- Write A Program Using Do…..while Loop To Calculate And Print The First M Fibonacci Numbers?
- What Is The Difference Between Reference &instance Variable?
- Why Java Is Slow?
- What Is The Drawback Of Ms Access?
- What Is Replaced In Place Of Pointers In Java?
- What Replaces Pointers In Java?
- How Many Types We Create Object In Java?
- What Are The Differences Between Arraylist And Vector? Give Me One Example Of Each.
- What Is The Difference Between The Pipeline And Vector Processing?
- What Is The Difference Between Scalar Pipelines And Vector Pipelines?
- What Are The Difference Between Scalar Quantity To Vector Quantity?
- What Is The Difference Of Pipe Lining And Vector Processing?
- What Are The Difference Between Pipe Lining And Vector Processing ?
- What Is ArrayList?
- What Is The Difference Between C, C++ And Java?
- What Is The Difference Between C,c++,java?
- What Is The Difference Between Java And J2ee?

New Comment - Comments are editable for 5 min.