r/java • • Aug 16 '13

Learning Java - Book or online tutorial?

Hey guys, quick question - which one is more effective and beneficial way to learn Java - the "Core Java" books (9th edition, 2013), or from online tutorial from Oracle (http://docs.oracle.com/javase/tutorial/)? Or perhaps I should use different book/online source?

Thanks in advance for responses.

4 Upvotes

12 comments sorted by

4

u/ZeusLightning Aug 17 '13

I have been programming in java for the last 4 years as my main language, but I have to ask.. Is this your first language? If it is, why do you want to learn Java? If not, then I am assuming you want a tutorial on java specific things? (Just trying to get an idea of where you are coming from)

1

u/NewbornWisnia Aug 17 '13

I've had basics of programming in my technical high school - a little bit of Pascal, C++, Delphi and Java (in that order). The reason I choose Java is because I'm an android freak and I'd love to make my own apps for that platform.

But for sake of learning, I probably need to start from the beginning so I can fully understand the core of Java.

5

u/akavuuh Aug 17 '13

Head First Java - 2nd Edition by O'Reilly, a great book with a nice flow of conveying the core component of Java.

Ebook here

O'Reilly Book Website with Source code etc

3

u/ZeusLightning Aug 17 '13

If you don't know object oriented programming very well like topics such as inheritance .. then I would go through some of the reads in http://docs.oracle.com/javase/tutorial/java/index.html.

I have never found a book particularly helpful when doing stuff. I find that the best way of learning something in programming is reading a bit of background information and then just doing a project. Don't pick a project that is to hard, and just do it.

Its been years since I took the starting class at Purdue, but I believe that they have some projects that are android specific. If not, then it was just a rumor I heard haha http://web.ics.purdue.edu/~cs180/Spring2012Web/

3

u/blind_cat_sniper Aug 23 '13

I agree with this; I knew the very basics of java from a couple of YouTube videos, and since then have been trying some of these challenges. Pick the easy ones, because even some of those are quite hard to get your head around. I've been working on this challenge for a while now and I think I'll be able to finish it today.

2

u/ZeusLightning Aug 23 '13

These are always fun http://projecteuler.net/problems, but some of them might be to much math for what you are looking for

3

u/blind_cat_sniper Aug 23 '13

Thank you very much, these look great for learning to code and learn some more math while I'm at it!

4

u/gwevidence Aug 17 '13

Here are some resources. CS61B is highly recommended.

2

u/NewbornWisnia Aug 17 '13

In October I'm starting my uni at CS degree, so these courses regarding programming in general will come very handy. Thank you!

3

u/eighthCoffee Aug 16 '13

Read both. Do all excercises. When you will be finished with these, read and code some more.