I Need a Book with Java Code Samples for JDK

Greetings. I learn best when I look at code samples, especially with a little bit of explanations. I am new. I already read the Head First Java books and now need to write some code.

I looked at the Java Cookbook, and liked what I read, but am worried because most of the reviews on Amazon.com, although they were good, were mostly several years old.

So I needed to know if there was a really good book on the market, that is not outdated and relevant for today, that has a lot of code samples.

The Java Examples in a Nutshell has a lot of code, but the author wants you to let him know about bugs that are in it, I need a book with code that I can trust will compile.

Any suggestions would be more than appreciated. The Deitel book has lots of code but the author's explanations while perfectly short, are not clear.

Osborne's the Complete Reference book by Herbert Schildt is great, but again the latest Fifth edition is several years old. Perhaps folks simply reference outdated material, I am new and need to know how best to proceed.

Thank you.

peace.

Message was edited by:

peacerosetx

[1157 byte] By [peacerosetxa] at [2007-11-26 12:41:00]
# 1
Try Cay Hortsman (Core Java 7th Edition Volume 1 and 2) for J2SE.Marty Halls Books (Core Servlets and JSP Volume I and II) for J2EE.=)
Redxxiva at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 2

i posted the same qustion couple of months ago. free books online and free tutorial.

http://forum.java.sun.com/thread.jspa?threadID=772736&messageID=4401901#4401901

I am not very good but still learning and hopefully one day i will accomplish my goal i prefer you to go to charlotte website it is very good and it has some exercise problems and quizzes.

http://chortle.ccsu.edu/java5/cs151java.html

Good luck

fastmikea at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 3

> Try

> Cay Hortsman (Core Java 7th Edition Volume 1 and 2)

> for J2SE.

> Marty Halls Books (Core Servlets and JSP Volume I and

> II) for J2EE.

>

> =)

Thank you very much for the information. Do you advise against using an older reference book (like three four years old)?

peacerosetxa at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 4

> Thank you very much for the information. Do you

> advise against using an older reference book (like

> three four years old)?

Why use older (3-4years old) books?

There are plenty of resources in the internet (New E-Books) or Tutorial Sites.

And if you'd really want to have a career in Programming (Java or any) it is very

wise to have your own books.

And there is always this forum (for java) if you are having trouble with your learning, and other languages forum for other languages (C, etc).

And you could always "GOOGLE" for other stuffs.

=)

Redxxiva at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 5

> i posted the same qustion couple of months ago. free

> books online and free tutorial.

>

> http://forum.java.sun.com/thread.jspa?threadID=772736&

> messageID=4401901#4401901

>

> I am not very good but still learning and hopefully

> one day i will accomplish my goal i prefer you to go

> to charlotte website it is very good and it has some

> exercise problems and quizzes.

>

> http://chortle.ccsu.edu/java5/cs151java.html

>

> Good luck

Thank you for your help. I can now go to the bookstore or Amazon and invest in Core Java by Horstmann, it seems a good way to go. Thank you for the link, and for your time.

Peace.

peacerosetxa at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 6

http://www.javapractices.com/index.cjp

It's not really a tutorial, just a lot of good advice. It also contains two fairly complex sample apps, and portions of their source code are used to illustrate many of the practices.

As for the books, you should at least get one that's new enough to cover generics, annotations, and other features that were introduced Java 5. One that covers Java 6 would be even batter.

You can also study the source code of various Open Source projects, including Java itself.

uncle_alicea at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 7

> I looked at the Java Cookbook, and liked what I read,

> but am worried because most of the reviews on

> Amazon.com, although they were good, were mostly

> several years old.

Well, so are the Java basics. All you get are additions, though, never changes. So a new book will tell you either the same or more, but the old one won't really become wrong.

CeciNEstPasUnProgrammeura at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 8
>So a new book will> tell you either the same or more, but the old one> won't really become wrong.Thank you for the advise. I like your ability to understand the essence of the dilemma. I agree with you the material remains relevant. Merci.Peace.
peacerosetxa at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 9

> http://www.javapractices.com/index.cjp

>

> It's not really a tutorial, just a lot of good

> advice. It also contains two fairly complex sample

> apps, and portions of their source code are used to

> illustrate many of the practices.

Wow what a jewel, code samples. Thank you I checked out the link and bookmarked the page.

peace.

peacerosetxa at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 10

Many of the practices listed on that site are lifted almost verbatim from Bloch's [url=http://www.amazon.com/Effective-Java-Programming-Language-Guide/dp/0201310058/sr=8-1/qid=1166227394/]Effective Java[/url]. You should get the book anyway, because Bloch's discussions of the practices are deeper and more insightful. It's a must-read for any serious Java programmer.

uncle_alicea at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...
# 11

> Many of the practices listed on that site are lifted

> almost verbatim from Bloch's

> [url=http://www.amazon.com/Effective-Java-Programming-

> Language-Guide/dp/0201310058/sr=8-1/qid=1166227394/]Ef

> fective Java[/url]. You should get the book anyway,

> because Bloch's discussions of the practices are

> deeper and more insightful. It's a must-read for any

> serious Java programmer.

Thank you. I just called my Half-Priced Bookstore for it. Although they do not have it yet. This book will now go on my must get () list. I appreciate you.

peacerosetxa at 2007-7-7 16:13:22 > top of Java-index,Java Essentials,New To Java...