Open In App

Inbuild Data Structures in Java

A data structure is a specific way of storing and organizing data so that it can be used effectively and efficiently. An efficient data structure takes up little memory space and requires as little time as possible to execute the data. Java provides a variety of built-in data structures that are commonly used in Data Structures and Algorithms (DSA) implementations.

Here are some of the most important Built-in Data Structures in Java:

Inbuild Data Structure

Internal Working

Static/Dynamic

ArrayList

Array of Object classes

Dynamic

LinkedList

List and Deque

Dynamic

Stack

Vector class

Dynamic

Queue

LinkedList class

Dynamic

PriorityQueue

Binary Heap

Dynamic

HashSet

HashMap

Dynamic

HashMap

Array of buckets

Dynamic

TreeSet

TreeMap 

Dynamic

TreeMap

Red-black tree

Dynamic

HashTable

Slot/Bucket

Dynamic

LinkedHashSet

HashTable and LinkedList

Dynamic

ArrayList:

LinkedList:

Stack:

Queue:

PriorityQueue:

HashSet:

HashMap:

TreeSet:

TreeMap:

HashTable:

LinkedHashSet:

Article Tags :