array

Stack vs Array

Stack is a linear data structure that appears like a list. A stack appears like a sequential collection of constituting elements. Array is also a linear data structure that consists of a collection of various elements that have the same data type. An array’s size is pre-decided. It stores all the values at a location known as the index of values.

Posted September 10, 2022 by Rohith and Anusha ‐ 2 min read

quick-references blog stack array differences

Arraylist

ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java.

Posted August 16, 2022 by Anusha ‐ 7 min read

core java programming array list collections

Vector Class

The Vector class implements a growable array of objects. Vectors fall in legacy classes, but now it is fully compatible with collections. It is found in java.util package and implement the List interface, so we can use all the methods.

Posted August 18, 2022 by Anusha ‐ 6 min read

core java programming vector class array deprecated list collections

Subscribe For More Content