• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

Top 10 data structures in Java which are the most versatile and are most used in projects

Hi,

What are the Top 10 data structures in Java which are the most versatile and are most used in projects

and every programmer should know how to implement them well

thanks
-anshu
0
anshuma
Asked:
anshuma
3 Solutions
 
dpearsonCommented:
If you know how to use:

List
HashMap
TreeMap
arrays
Stack
Queue

you're 95% of the way there.

If you're looking for extra credit these days I'd add in more sophisticated ones like:

ConcurrentHashMap
CopyOnWriteArrayList
PriorityQueue
BlockingQueue

That looks to be 10.

Doug
0
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
I would add Set (such as HashSet) to Doug's list.
0
 
girionisCommented:
which are the most versatile and are most used in projects

This heavily depends on your project's requirements. But in general the most widely used I'd say are lists/arrays and hash maps.
0
 
dpearsonCommented:
Oops - mccarl is absolutely right about Set.  That's important to include.

Doug
0
 
anshumaEngineeringAuthor Commented:
Thank you experts
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now