Hacker News new | ask | show | jobs
by 6ren 5240 days ago
It's getting old, but the early editions of O'Reilly's "Java in a nutshell" (by David Flanagan) books were targeted specifically at C/C++ programmers learning Java. In my opinion, it's extremely well-written, being correct, clear, concise and engaging.

From the 4th edition (which was for Java 1.4), it bulked up from 1 inch thick to 2 inches, and stopped specifically targeting C programmers. It's still good, just not as good. Also, since then, Java has added generics, annotation and several other things. Some of these (esp. generics) have a widespread impact on coding. Also, it doesn't cover the ecosystem. But if you want to start with the basics, it has them.

For an introduction to the basics of the language, in terms of C, the earlier editions can't be beat. (your local university library will have several copies - chapters 2 How Java differs from C and 3 Classes and Objects are what you need)

1 comments

I have no experience going from c/c++ to java, but I would highly recommend starting at java 1.5 or above.

The differences between 1.4 and 1.5 were quite profound