tags:

views:

1425

answers:

15
+14  Q: 

Java Tutorial

I am interested in learning Java. What is the best online tutorial?

+4  A: 

Straight from the horse's mouth: The Java Tutorials

eaolson
+16  A: 

Actually, I think Sun's java tutorial is one of the best. http://java.sun.com/docs/books/tutorial/

Ace
Yes, excellent guides on all topics. Great starting guide.
Carra
Some of its topics, like JNDI, provide the most in-depth information you'll find anywhere. It's been a fantastic resource since the beginning. I hope they'll keep it up-to-date.
erickson
Sun, if anyone, would want to keep their material up to date I think. :)
Ace
I learned swing with the Java Tutorial. It has a lot of very good examples. For sure is a good first stop.
Mario Ortegón
+3  A: 

If you want to learn Java w/ Eclipse here is a great site.

Steve g
+3  A: 

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.

jjnguy
Agreed, the API is the best guide ever, at least for intermediate developers or higher. It's kind of like the man pages in linux, you have to know about something in order to get help with it. :D
Ace
You do need to be a little more knowledgeable to use the API. But I think it is something that beginner programmers need to learn how to use as early as possible.
jjnguy
+5  A: 

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.

Steve B.
A: 

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.

Zarkonnen
A: 

Original Sun's Java tutorial is good. Look at ther boo Thinking in Java too.

maxp
A: 
Alan
A: 

If this is not your first programming language, then the JLS would be a better option. It is the definitive book on Java.

Vijay Kotari
I disagree. Language specifications are not tutorials in any sense. If you're trying to learn a language, the specification really isn't going to help you very much. Later on, when you become a language lawyer, it's your most invaluable reference, of course, but until then, there are ample better resources.
Rob
+1  A: 

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

Peter
+1  A: 

Easy, do a whole university course on it.

It's all free. :)

Glitch
A: 

One of the best site for java is javapassion.

Rachel
A: 

Effective Java is a very good book on Java.

retornam
A: 

These link for java tutorial are more helpful in understanding java concepts.

http://www.roseindia.net/java/master-java/index.shtml

http://articles.sitepoint.com/article/java-language-basics

Karthikeyan
+1  A: 

Collecting some links:

Tutorials and Courses

References

For Purchase

Ben Gartner