A Data Structure is a specialized format for organizing, processing, retrieving, and storing data. Choosing the right data structure can make your Java application run significantly faster.
Classification of Data Structures:
|
Category |
Description |
Examples |
|
Linear |
Elements are arranged in a sequential manner. |
Array, Linked List, Stack, Queue |
|
Non-Linear |
Elements are arranged in a hierarchical or interconnected way. |
Tree, Graph, Trie |
|
Static |
Fixed size defined at compile time. |
Arrays |
|
Dynamic |
Size can change during runtime. |
ArrayList, Linked List |