I am interested in learning Java. What is the best online tutorial?
Actually, I think Sun's java tutorial is one of the best. http://java.sun.com/docs/books/tutorial/
The API is some great reading too! It can tell you about features of the language that you never knew.
When searching Google for the documentation on a method I search:
'Classname' Java 'version_number'
For example:
String java 6
That will pull up the API for the String class in the newest version of the API.
One of the best, and certainly the most thorough resource for me was Bruce Eckel's "Thinking in Java". It's longer and more extensive than most other tutorials that I've seen, mostly because (as I remember) it goes into the "why" of things a lot more, sort of the opposite of the "X in 21 days" type of thing. I found it easier than the sun documentation and very well written.
On top of which he puts the book up on his site for free (the earlier editions are free) http://www.mindview.net/Books/TIJ4 but it's definitely a resource worth buying if you're serious about learning the language. I don't know if the latest free edition on the site will include the more recent language features in java 1.5, which are about 2-3 years old at this point, you'd want to check that.
The JGloss page on getting started in Java is well worth reading. The rest of the glossary is also a very good resource for reading up on particular aspects of Java.
Original Sun's Java tutorial is good. Look at ther boo Thinking in Java too.
If this is not your first programming language, then the JLS would be a better option. It is the definitive book on Java.
Thinking In java beats the sun tutorial for learning purposes
Once you get the hang of it use The Really Big Index for studying specific issues like the Collection API
These link for java tutorial are more helpful in understanding java concepts.
Collecting some links:
Tutorials and Courses
- Sun's Java Tutorial
- Thinking in Java, 4th edition by Bruce Eckel
- Eclipse and Java
- Stanford's Intro to Comp Sci Course
- RoseIndia's Master Java in a Week
- SitePoint's Java Language Basics
- Java Glossary's Getting Started entry
References
- Sun's Java 6 API
- The Really Big Index of Sun's Java Tutorial
- Java Language Specification
For Purchase
- Java Precisely, 2nd Edition by Peter Sestoft
- Effective Java: Programming Language Guide by Joshua Bloch
- JavaPassion Course