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?

2
  • 1
    The source codes are contained in src.zip that comes with the JDK. Commented Nov 22, 2014 at 22:08
  • possible duplicate of Where can I see the Sun Java source code? Commented Nov 22, 2014 at 22:15

1 Answer 1

1

You can download java sources from the official site.

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.