Solved

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

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

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 27

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues undeā€¦
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilationā€¦
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:
The viewer will learn how to implement Singleton Design Pattern in Java.

685 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