Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Like every author needs to read a lot of classical literature to develop his own style, and like every chess player read and analyze former champions games before, I think also every programmer needs to read a lot of high quality code.

When it comes to Java source code, what are your recommendations as "reading". Which open source projects, libraries in the past you found yet easier to grasp and easy to read but also very good examples of what "high quality" code looks like?

share|improve this question

closed as not constructive by Mark Trapp Feb 5 '12 at 20:32

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Hi iPhoneDeveloper, open-ended lists like this, where people take half a second to provide a one-line suggestion, might be great for a discussion forum, but aren't a good fit for the Stack Exchange style of Q&A. If you have specific high-level questions, feel free to ask those, instead. – user8 Feb 5 '12 at 20:33
@Mark Trapp if I can only ask "practical, answerable questions based on actual problems that you face" then what makes this site different than Stack Overflow? I find this approach very dogmatic and rigid, you close a lot of questions where many people can get benfit, maybe you need to get a hobby :) – iPhoneDeveloper Feb 5 '12 at 21:37
@Mark Trapp, its your luck day, I just found another question you can close, very similar to this, enjoy!… – iPhoneDeveloper Feb 5 '12 at 21:48
@Mark Trapp you'r really lucky today..close this one too;… – iPhoneDeveloper Feb 5 '12 at 23:22
up vote 6 down vote accepted

The Spring framework core source code is excellent to read. It has been recommended to me several times and I read some of it myself. Jürgen did a good job here.

share|improve this answer

I can recommend the source code of Guice, Bob Lee et al made a lovely clean code base there

share|improve this answer

The best source is the language inventor's own books. Search for a good book written by James Gosling. Also you can find a lot of great examples on Java's official website.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.