Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java.io.BufferedReader   readLine()  //returns the entire file ? 4 79
Java Options in Zimbra Server 2 55
Arrays.asList  VS  ArrayList 4 63
map related example 6 50
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

825 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