1

How can I see how a specific algorithm in Java is implemented? For example, the Arrays.sort() method sorts different types of arrays. However, I'm unable to understand what goes on under the hood. How do I see how this method is implemented?

  • 1
    The source codes are contained in src.zip that comes with the JDK. – Kayaman Nov 22 '14 at 22:08
  • possible duplicate of [Where can I see the Sun Java source code?](http://stackoverflow.com/questions/261015/where-can-i-see-the-sun-java-source-code) – eebbesen Nov 22 '14 at 22:15

1 Answers1

1

You can download java sources from the official site.

And for non-open java libraries you can use decompiler.

Maksym
  • 4,434
  • 4
  • 27
  • 46