views:

190

answers:

6
+3  Q: 

a good Java guide

Do you know a good guide for Java, such as "dive into python" for python?

If I searched google I expect I would find tons of random guides, but trying them all until I found a good one could take ages... that's why I am asking: do you already know one in particular? one you KNOW is good?

I already know C, PHP and a bit of Python, if that matters.

+2  A: 

Deitel's Java: How to Program. When you're done with the book (and all its exercises), you will know most of what you'll ever need to know about Java.

Stefan Kendall
Many people hate on Deitel because they were assigned it as a course text. I studied the book (5th edition) in highschool, and it pretty much made me the programmer I am today. Work ALL the exercises, and don't give up too readily if it's difficult. Some of them are meant to be a challenge (You implement networked checkers toward the end).
Stefan Kendall
Deitel is good but reader should be selective for text and exercises because good stuff is mixed with very easy, trivial content.
erasmus
+3  A: 

The Java Tutorials by Sun.

The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails".

When I need to learn something about Java, the link I provided you is where I go. This has proved to be a really valuable source of information about Java to me.

Just to start:

Trail: Getting Started
Trail: Learning the Java Language

Leniel Macaferi
+6  A: 

If you already know some other languages and you're mostly interested in learning how to write good Java code, I would recommend Effective Java by Joshua Bloch. If you want to learn the basics of the language, The Java Tutorials that Leniel mentioned are good.

Zachary
Effective Java is really important to read. Rather than about syntax, it's about following good Java conventions. It will make other programmers like your code more.
CaptainAwesomePants
+6  A: 

Bruce Eckel's Thinking in Java has the advantage of being free (e-book).

JRL
Agreed, although the fourth edition isn't free. You can download the first seven chapters though: http://mindview.net/Books/TIJ4
MikeJ
great, I heard about it a lot of time ago and then just forgot about it, I'll definitely have a look, since it's probably what I need.
Lo'oris
+2  A: 

I find books from the Head First series really great so my recommendation would be:

alt text

Pascal Thivent
+1 Great if not THE best book for beginners. After that, advance to the Java Tutorial (the advanced chapters) or Effective Java.
Helper Method
A: 

I would suggest Java Passion site, it is really very good and helpful.

Rachel