HomeAbout Me

Data Structure Fundamentals in Java

By Arvind Pandey
Published in Programming
July 18, 2020
1 min read

What is the Data Structure?

In the simplest term, a data structure is a container for the data. We can further understand with the help of a real-life example. Let’s say you want to store milk. What are your choices for storing milk? Perhaps a glass, a pouch, a bucket, etc. Now, which container you would choose depends upon what is your use case. You want to drink the milk now, the glass would be your first choice. If you want to carry the milk for later use, the pouch might be a better choice this time.

Each container comes with allowed operations on that container. For instance, you have a box of chocolate, the box is the container, and the allowed operations like opening the lid, closing the lid, getting the chocolate out of the box if it has the chocolate.

Similarly, each data structure comes with allowed operation on that particular data structure. There are many data structures but will cover the most commonly used data structures only.

Why do we need a data structure?

The sole purpose of the data structure is efficient storage and retrieval of the data.

Important Data Structures

We are mainly going to focus these data structures.

  1. Array
  2. String
  3. Linkedlist
  4. Queue
  5. Stack
  6. Hashmap
  7. Binary Search Tree
  8. Graph

Tags

#ds#programming#java
Previous Article
Stack Fundamentals in Java

Topics

Life & Productivity
Programming
Running

Related Posts

Build Rest API from scratch in Node.js
July 24, 2020
4 min
Arvind Pandey © 2022, All Rights Reserved.

Quick Links

About Me

Social Media