r/javahelp • • May 07 '20

Codeless Java Developers: what are the common data structures you usually use on production

To professional java dev here, what are the common data structure youve been using and which data structure you strongly suggest for beginners, like me, to study carefully

40 Upvotes

38 comments sorted by

View all comments

-3

u/wsppan May 07 '20

Mostly use the Spring Framework and all its associated design patterns and abstractions. Most notably, Dependency Injection and Spring Data. We also use AOP for cross cutting concerns like security and logging. Most data structure concerns are built into the language via Java Collections so we use Enums for constants, Lists for dynamic arrays, and Maps for hashes. We mostly focus on design patterns and associated abstractions as that is more important than the underlying data structures because those come free are already optimized and (most) built for concurrency.