QA's approach 2 Java - Data Structures
What is a Data Structure?
Its a container or a storage box which holds a collection of elements as a single unit.
Its a class grouping multiple elements into single entity.
What can be done on this container?
1. New elements can be added
2. Added elements can be retrieved
3. Added elements can be deleted or replaced
4. Elements can be copied from this container to another container
Some Data structures allows duplicates [Lists], allows null values [Set], stores or prints elements in ascending order, etc..
Comments
Post a Comment