1 Answer - Sort by: Date | Rating
Arraylist and vector are very similar to each other. They are fundamentally arrays that are growable and lets you access the elements in it through indices.
Arraylist is a later addition to Java collection framework. It was added with the version 1.2. On the contrary, the object 'Vector' has been present since the first version of Java development kit. The List interface was later retrofitted into Vector.
The main difference between the two is perhaps that vectors are synchronized while Arraylist is not and hence they are not thread-safe while vectors are. This will affect the performance and hence if you don't need to be thread safe, please use Arraylist for more efficiency.
Another difference is that Vector has a default size of 10 while Arraylist has no such default size and it also does not define an increment size, it is static where we can't change the size of the array. On the contrary vector is dynamic and its size can increase or decrease per the storage required by the program.
Arraylist is a later addition to Java collection framework. It was added with the version 1.2. On the contrary, the object 'Vector' has been present since the first version of Java development kit. The List interface was later retrofitted into Vector.
The main difference between the two is perhaps that vectors are synchronized while Arraylist is not and hence they are not thread-safe while vectors are. This will affect the performance and hence if you don't need to be thread safe, please use Arraylist for more efficiency.
Another difference is that Vector has a default size of 10 while Arraylist has no such default size and it also does not define an increment size, it is static where we can't change the size of the array. On the contrary vector is dynamic and its size can increase or decrease per the storage required by the program.
0
0
- What Are The 5 Basic Types Of Files?
- When I Play Poker It Ask Me To Confirm My Email,but How?
- I Need Where Is Code?
- Where Do You Put In The Rare Candy Cheat?
- How Registry Cleaner Helps To Remove Explorer.exe Registry Error Which Occur Most Of The Time When We Open My Com?
- Is There A Web Site For The Kids? How Do I Restrict My Internet From Displaying Ponographic Sites
- I Need To Know The Codes From Programing An Rca Remote To A Sharp Tv?
- How Does The Emission Trading Scheme Work?
- Where Do You Get Kecleon In Pokemon Platinum
- How Do You Get A Munchlax, Manaphy, Salamence And A Milotic?
- How Can I Get My Google-mail Again?
- What Is The Value Of Games In The Life Of Children?
- How Do You Get Other Peoples Usernames And Passwords To Use From Weeworld?
- How Do I Find Out Other Peoples Usernames And Passwords On Weeworld?
- How Do You Send Pictures To Myspace From Your Nintendo Dsi?
- What's A Xdse In Platinium?
- What Do You Mean By Data Types?
- How To Be A Webkinz Deluxe Member?
- A Guy Has Created An Account In My Friend's Name In Orkut & Has Posted Unwanted Items In It . Please Tell Me How Can I Block That Account?
- How To Intall New Version Tally 9.0?
- What's The Gem Code For Nonmember? Ourworld'
- What Is Parallel Transmission In Computer Network And What Is The Advantage And Disadvantage Of This Transmission?
- What's The Cheat Of Aeroplane In San Andreas Pc?
- How To Do You Go Up On Solaceon Ruin?
- How To Setup Screen Saver Lgks360?
- What Is The Difference Between Vector And Arraylist In Java?
- What Are The Differences Between Pipe-lining And Vector Processor?
- What Is A Vector Quantity? Please Give Examples.
- What Is ArrayList?
- What Are The Differences Between Oracle And Mysql?(please Give At Least 5 Differences)
- Can You Give At Least 4 Differences Between Optical And Mechanical Mouse?
- Can You Give Me Ten Differences Between Data And Information?
- Give Atleast Three Differences Between Internet And Extranet?

New Comment - Comments are editable for 5 min.