Have you installed the JDK on your machine.
Look for a file called src.zip in the JDK installation directory. That contains the source code for the Java classes. It should give you a clear picture about the implementation.
Ak Rahul
Greenhorn
Joined: Jul 08, 2009
Posts: 21
posted
0
thanks maneesh. Can you direct me to some text that explains this, instead of reading the JDK source code, since I also want to know which one has better performance, etc.
Rahul Ak wrote:thanks maneesh. Can you direct me to some text that explains this, instead of reading the JDK source code, since I also want to know which one has better performance, etc.
What you need is a general knowledge of the basic standard data structures such as arrays, list, trees and hash tables.
Then you need to look at the Sun API specification to find out the exact properties of a specific collection. It's usually detailed enougth to know what to expect. And by relying on this information only your code becomes implementation independent. This is because the API specifications from Sun work as a standard for the Java language. Trying to "envision" the properties of a collection by seccondguessing its internal workings or looking at an implementation will lead you wrong.
Ak Rahul
Greenhorn
Joined: Jul 08, 2009
Posts: 21
posted
0
Thank you for all responses. I really appreciate your help.
regards,
Rahul
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.