Most modern languages support many of the data types we’ve looked at so far this term, including Stacks, Queues, Hash Maps/Dictionaries, and more.
Many of these are supported within the language itself, often through a utility package, or something similar which can be imported, or from a third party library that can be imported. Which method depends upon what language and what data type you are considering.
Java is no different, and supports Stacks, Queues, Sets, and more. They will often be found in a family of related data structures and implement the Collection interface.
The nice thing about them being a part of the language, is that you don’t have to worry about the implementation. So why did we learn about implementing them – because it helps us understand when to pick the right data structure type, as well as knowing when and how create that structure in case it isn’t supported in the language we are using.
It’s one thing to be able to use a data structure given to you, it’s quite another to be able to develop and modify a data structure to meet your specific needs.
Built in Java Classes was originally found on Access 2 Learn