Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internal implementation of data structures in java?

Is there a source where I can find detailed implementation information of various data structures in Java (HashMaps, TreeSets etc.). e.g: What is the hash function used for different types? Is it open addressing or something else? Similar stuff.
PS: I am aware that I can go through the source code. But that I will leave for some other day :)

like image 571
Kartik Rustagi Avatar asked Jul 26 '26 07:07

Kartik Rustagi


1 Answers

Since Java is open source, the implementation itself is the best thing to look at.

If you are using Eclipse and have configured source code, just do ctrl+left click on required data structure declaration. tt will open source for that.

The API Documentation DOES NOT give implementation details.

like image 79
Bhushan Avatar answered Jul 28 '26 20:07

Bhushan