Solved

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

Posted on 2014-01-08
5
291 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
create a gui in perl 3 72
Java Filesystem manipulation of Word Docx file (find replace text) 3 66
GUI builder for Eclipse? 8 27
Basic Java Case or If-Else statement... 3 43
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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 practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

896 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

12 Experts available now in Live!

Get 1:1 Help Now