Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Java-Functions
4.2K+ articles
Java Programs
2.0K+ articles
Java - util package
1.6K+ articles
Tree
1.4K+ articles
Linked List
1.2K+ articles
Java-Collections
1.1K+ articles
java-basics
330+ articles
Java-Vector
82 posts
Recent Articles
Popular Articles
Java Program to Search an Element in Vector
Last Updated: 21 June 2024
A vector in Java is a dynamic array that can be resized as needed. It is synchronized, which means it is safe in multi-threaded programs. To find an element in a Vector we...
read more
Java
Java Programs
Picked
Java-Vector
How to Implement a Custom Vector with Additional Functionality in Java?
Last Updated: 23 February 2024
In Java, the Vector class is a part of the Java Collections Framework providing the Dynamic Arrays that can be resized. However, there might be scenarios where you need a ...
read more
Java
Java Programs
Picked
Java-Vector
Java Examples
Extract Unique Elements from a Vector While Preserving the Order in Java
Last Updated: 21 February 2024
Vector in Java can be understood as a dynamic size array, that can be shrink and grow as per the requirement. Vector can be assumed similar to ArrayList, but Vector contai...
read more
Java
Java Programs
Picked
Java-Vector
Java Examples
How to Convert a Vector of Objects into a JSON Array in Java?
Last Updated: 24 April 2025
In Java, the conversion of data structures like Vector to JSON (JavaScript Object Notation) format is required especially while working with the APIs or data interchange b...
read more
Java
Java Programs
JSON
Picked
Java-Vector
Java-JSON
Java Examples
How to Initialize a Vector with a Specific Initial Capacity in Java?
Last Updated: 12 February 2024
In Java, Vector Class allows to creation of dynamic arrays that can grow or shrink as per the need. If we know the approximate size of elements, we will store this in the ...
read more
Java
Java-Collections
Java Programs
Picked
Java-Vector
Split a Vector into Multiple Smaller Vectors in Java
Last Updated: 09 February 2024
In the realm of Java programming, the manipulation of vectors is a common task. One particularly useful operation is splitting a vector into multiple smaller vectors. This...
read more
Java
Java-Collections
Java Programs
Picked
Java-Vector
Difference between ArrayList, LinkedList and Vector
Last Updated: 10 November 2023
ArrayList:Array List is an implemented class of List interface which is present in package java.util. Array List is created on the basis of the growable or resizable array...
read more
Arrays
Linked List
Linked Lists
Technical Scripter
Data Structures
Java-ArrayList
Java-Vector
DSA
Copy Elements of Vector to Java ArrayList
Last Updated: 15 November 2021
Since Vector class and ArrayList class both are part of Java Collections, ie Collection framework, so both of these classes can use methods available to the Collection fra...
read more
Java
Java-Collections
Java Programs
Java-ArrayList
Picked
Java-Vector
How to Sort Vector Elements using Comparable Interface in Java?
Last Updated: 02 March 2022
Vector is a child interface of collection. If we want to represent a group of the individual objects as a single entity where duplicates are allowed and insertion order mu...
read more
Java
Technical Scripter
Java-Collections
Java Programs
Picked
Java-Vector
Technical Scripter 2020
Java-Comparable
How to Iterate the Vector Elements in the Reverse Order in Java?
Last Updated: 22 February 2021
The Vector class is found in java.util package and it implements List interface. The Vector class is included in the java collection framework from Java version 1.2. Unlik...
read more
Java
Technical Scripter
Java-Collections
Java Programs
Picked
Java-Vector
Technical Scripter 2020
Finding Minimum And Maximum Element of Vector using Comparable Interface in Java
Last Updated: 09 August 2022
The Vector class in java implements a dynamic array i.e. it can grow and shrink according to the elements that we insert or remove to/from it. It implements the List inter...
read more
Java
Java-Collections
Java Programs
Picked
Java-Vector
Java-Comparable
Copy Elements of One Java Vector to Another Vector in Java
Last Updated: 15 November 2021
Vector is similar to arrays but is growable also, or we can say no fixed size is required. Previously vector was a part of legacy classes but now it is part of Collections...
read more
Java
Java-Collections
Java Programs
Picked
Java-Vector
How to Replace an Element at a Specific Index of the Vector in Java?
Last Updated: 19 January 2021
The Vector class implements a growable array of objects. Vectors basically fall in legacy classes but now it is fully compatible with collections. It is found in the java....
read more
Java
Technical Scripter
Java-Collections
Java Programs
Picked
Java-Vector
Technical Scripter 2020
How to Get Random Elements From the Vector in Java?
Last Updated: 07 January 2021
Vector in java is a part of Java's collections framework. Vector is a dynamic array of objects, i.e., the size of the vector can be modified as per the requirement. Vector...
read more
Java
Technical Scripter
Java-Collections
Java Programs
Picked
Java-Vector
Technical Scripter 2020
Java Program to Convert Array To Vector
Last Updated: 07 January 2021
Array is a group of like-typed variables that are referred to by a common name. Java arrays can be both types namely primitive data types or object (or non-primitive) refe...
read more
Java
Java-Arrays
Java Programs
Picked
Java-Vector
1
2
3
4
5
6
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !