?
Solved

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

Posted on 2014-01-08
5
Medium Priority
?
308 Views
Last Modified: 2014-01-11
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
Comment
Question by:anshuma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 28

Accepted Solution

by:
dpearson earned 1600 total points
ID: 39767196
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
 
LVL 36

Assisted Solution

by:mccarl
mccarl earned 200 total points
ID: 39767588
I would add Set (such as HashSet) to Doug's list.
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 200 total points
ID: 39767602
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
 
LVL 28

Expert Comment

by:dpearson
ID: 39769994
Oops - mccarl is absolutely right about Set.  That's important to include.

Doug
0
 

Author Closing Comment

by:anshuma
ID: 39773208
Thank you experts
0

Featured Post

Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question