---
title: "Vector VS ArrayList  - Which has better performance and why?"  
description: "Vector VS ArrayList  - Which has better performance and why?"  
author: "Anonymous User"  
published: 2015-10-08  
updated: 2015-10-08  
canonical: https://www.mindstick.com/forum/33499/vector-vs-arraylist-which-has-better-performance-and-why  
category: "java"  
tags: ["java", "collection", "array list"]  
reading_time: 1 minute  

---

# Vector VS ArrayList  - Which has better performance and why?

Hi , In [java](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) [collection](https://www.mindstick.com/articles/1718/collections-in-java) i know what is [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between [ArrayList](https://www.mindstick.com/articles/11973/arraylist-class-in-c-sharp) and [Vector](https://www.mindstick.com/interview/832/what-is-the-difference-between-the-size-and-capacity-of-a-vector). Vectors are [synchronized](https://www.mindstick.com/interview/2499/what-is-the-purpose-of-synchronized-block) which will cause [performance issues](https://www.mindstick.com/forum/160277/how-execution-plan-can-help-identify-query-performance-issues). So i what to know exactly what would be the [performance issue](https://www.mindstick.com/forum/160932/where-sql-profiler-helps-to-troubleshooting-a-performance-issue) if i use vectors in my [application](https://www.mindstick.com/articles/12824/calculator-application-in-android)? When should we use vector [instead of](https://www.mindstick.com/articles/330/triggers-in-sql-server) ArrayList?

## Replies

### Reply by Anonymous User

Hi Karen,\
If your program involves thread implementations, then you need to use vector instead of arrylist, which will effect your performance since all the methods in vector are synchronized which means **only one thread at a time can use this method** so it degrades the performance, \
But if the application doesn't involves multiple threads we need to stick with ArrayLists


---

Original Source: https://www.mindstick.com/forum/33499/vector-vs-arraylist-which-has-better-performance-and-why

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
