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

2

u/firsthour Profressional developer since 2006 May 07 '20

99% of the time it's a Map, List, or Set. Very, very seldom a Bag.

You have to know exactly when to use a Map, List, or Set. Understand the difference between them because most of the job is just moving things around in those structures.

For specific implementations, 95% of the time it's a HashMap, ArrayList, or HashSet.