Solved

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

Posted on 2014-01-08
5
290 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
5 Comments
 
LVL 26

Accepted Solution

by:
dpearson earned 400 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 35

Assisted Solution

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

Assisted Solution

by:girionis
girionis earned 50 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 26

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
count7 challenge 12 70
allStar challenge 1 43
ArrayLists in ArrayLists/HashMaps? 4 41
Cipher Configuration on Apache HTTPD 4 24
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now