Ask HN: Resources for learning Java?
After 2 years of coding exclusively in PHP, I'm making the transition to Java and would like your suggestions on what are the best resources for learning the language.
If you are a Java dev, I would like to hear your story. How did you learn the language? What helped you the most? Any advice you can provide is appreciated.
20 comments
[ 7.7 ms ] story [ 64.8 ms ] threadThis got me through my college Java courses.
Also, if you want functional programming in your collections, check out Apache's commons collections:
http://commons.apache.org/collections/
http://mindview.net/Books/TIJ4
I liked it a lot at the time. No idea if that's the best thing out there now. I haven't seen the latest edition, as I haven't had to touch Java in several years.
I tend to learn languages a lot faster and in a much more thorough fashion when I approach it this way.
edit: this has nothing to do with java per se, but I find it is valuable to me when trying to pick up a new language.
It doesn't try to teach you programming, it just cuts to this "this is what this is in Java" ... high signal/noise.
http://www.google.com/search?q=%22java+for+php%22+programmer...
These results aren't as good as some, such as "Java for Lisp programmers". It's a useful heuristic, anyway.
1) Head First Java (Edition that covers Java 5) 2) Core Java (optional, latest edition) 3) The Java Programming Language 4th Ed _AND_ Effective Java 2nd Ed
The last resources are somewhat related. Some of the stuffs in TJPL can make EJ clearer and vice versa.
Effective Java is also a great read for becoming a "better" Java programmer, but may or may not be useful to you right off the bat.
http://java.sun.com/docs/books/tutorial/
http://java.sun.com/docs/books/tutorial/
The university is called Northwestern.
Some nice tutorials on several aspects of Java.
(by the way, ive done java since 98 up until couple of years ago when i switched to python...)