What is a data structure in Java?
A data structure is a collection of variables that stores information in a specific way for a program to use.
You're close! A data structure is more than just a collection of variables. It refers to organizing and storing data for efficient access and modification.
Can you explain how data structures help optimize performance in Java?