Java Programming Book?

Discussion in 'Mac Programming' started by olliea95, Feb 24, 2010.

  1. olliea95 macrumors regular

    olliea95

    Joined:
    Feb 10, 2009
    Location:
    Surrey, UK
    #1
    I am looking for a good Java programming book that is good for a Java newcomer, and gives examples and explains them.

    I suppose a little bit of background info would be useful. I have been programming for a while now, using many languages although I haven't properly got into any of them. Just the basics, I haven't really taken them further. I started with Visual Basic, which is the only language I can really do anything useful in, and then I did some Python and Ruby but never got into either of them. Next I tried HTML and CSS (some may not consider them programming languages) and I have learnt a great deal from those. But I have decided that I want to learn a proper programming language and actually take it quite a bit past 'Hello World!'.

    So I decided to give Java a go. In the past I have read through a Java for Dummies book, but that was old and not very well written. And now I am looking for a better, updated Java Programming book. Does anyone have any recommendations? Not sure whether this matters, but I want to be developing applets (the ones in websites?) instead of apps. I do already know most of the basics (writing the simple applets, compiling them and displaying them in HTML etc.) but I do think that a book which starts at the very start and then works its way further be awesome.

    So to outline, does anyone have any personal recommendations of books to help me properly start my quest with Java applets?

    Haven't managed to find anyone who can guide me on the best book on any forums, and since I know this one is epic ( :) ), decided to give my question a shot here.

    Thanks :cool:
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
  3. olliea95 thread starter macrumors regular

    olliea95

    Joined:
    Feb 10, 2009
    Location:
    Surrey, UK
    #3
    Thanks, I'll look into getting that one. Has got some good reviews.

    Anyone else got a different opinion?
     
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #4
    http://java.sun.com/docs/books/tutorial/

    Available online as HTML, or downloadable as PDF. Or even as dead tree carcasses.

    If you have a machine that doesn't run Snow Leopard, you may have to use the Java 5 tutorial (see links at URL for older versions of tutorial).
     
  5. olliea95 thread starter macrumors regular

    olliea95

    Joined:
    Feb 10, 2009
    Location:
    Surrey, UK
    #5
    Yeah I have read through the Sun tutorials, but I just can't get accustomed to the way they are written. I also prefer to have an actual hard copy book that I can quickly refer to at a moment of crisis.

    Thanks for the suggestion though.
     
  6. Ap0ks macrumors 6502

    Joined:
    Aug 12, 2008
    Location:
    Cambridge, UK
    #6
    The Deitel books on Java are pretty good. Well written and cover a lot of topics from the basics to more advanced topics, they also give exercises for you to try yourself after each chapter.

    Can be quite expensive though (best to try finding a used copy) http://www.informit.com/store/product.aspx?isbn=0132222205.
     
  7. olliea95 thread starter macrumors regular

    olliea95

    Joined:
    Feb 10, 2009
    Location:
    Surrey, UK
    #7
    Yeah, after reading through the ToC of the Deitel book it seems like it doesn't cover as much of the basics, but a more wider range of subjects than the O'Reilly book. I will have to have a think of which I would prefer.

    Nice one :)
     
  8. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #8
    Try "The Java Programming Language". It pretty much teaches you Java in 30 pages or so, the rest is a nice detailed explanation.
     
  9. AlmostThere macrumors 6502a

    #9
    If you are just starting, you could try Head First Java (Amazon Link).

    Java in a Nutshell is a good book, but I remember it being very concise.

    I think I would have to ask why you are looking at Java and applets in particular and why you think it will be different from Ruby or Python, languages you will very likely be more productive in, in a shorter period?

    You may of course have good reasons ... just asking (and am surprised nobody else has, yet) and trying to understand what has been missing for you.

    I think the Head First books are the about only books that offer something really different.
     
  10. olliea95 thread starter macrumors regular

    olliea95

    Joined:
    Feb 10, 2009
    Location:
    Surrey, UK
    #10
    Well to answer your question, I am going for Java and applets in particular because in the long run I want to be able to create a 3D Java game. I know that this is going to be a *very* long term goal, but hey, you have to have something to aim for :p And also I find the way of writing Java to be more intuitive than Ruby or Python, and so I find it, personally, more productive.

    Thanks for the suggestion, will look into it :cool:
     
  11. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #11
    Don't bother with Applets if you want to write a game.

    In fact, don't bother with Applets at all.
     
  12. olliea95 thread starter macrumors regular

    olliea95

    Joined:
    Feb 10, 2009
    Location:
    Surrey, UK
    #12
    Fair point but is there a way of embedding a 'regular' Java app into an HTML website?
     
  13. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #13
  14. olliea95 thread starter macrumors regular

    olliea95

    Joined:
    Feb 10, 2009
    Location:
    Surrey, UK
    #14
    Oh yeah forgot about that, thanks. Although one question is where the hell does web start actually save files to? I can't find it anywhere in the docs, and after launching one of the demo apps, I have no idea where it saved to my computer. Don't bother yourself trying to find it, but just incase you know :)

    Edit: My bad, I get it now. Thanks.
     
  15. mkmDesign macrumors newbie

    Joined:
    Feb 21, 2010
    Location:
    Scotland
    #15
    That's where I first started and I have to agree with you, I just didn't like it. So I ended up getting Core Java: http://bit.ly/ceMJvy, and I've found it to be a fantastic help with my studies. Really clear explanations and good examples. I have heard the Java In a Nutshell book is really good as well.

    Along with all the online tutorials that are widely available, I think you'd be happy with either the Java In a Nutshell book or the Core Java one.
     
  16. olliea95 thread starter macrumors regular

    olliea95

    Joined:
    Feb 10, 2009
    Location:
    Surrey, UK
    #16
    Glad I'm not on my own with disliking the Sun tutorials. And that book looks very nice, I'm torn between that one and the Nutshell book. Think I might just go with Core Java as it looks nicer, and that seems to be what I am going to go by.

    Will probably end up getting both though, thanks for the input :)
     

Share This Page