Slashdot Mirror


Java Developers Almanac 1.4 Vol. 1

Jason Bennett writes "The Java Developer's Almanac is an interesting cross-breed of a book. On one hand, it's a reference book for the entire Java 1.4 API, complete with a listing for every method in every class in the API. On the other hand, it's a mini-tutorial, as it comes with myriad examples of how to use various Java classes. In the end, though, it's a book geared toward the advanced Java developer, especially one facing a new part of the API who needs a little guidance." Read on for his review. Java Developers Almanac 1.4 Vol. 1 author Patrick Chan pages 1007 publisher Addison Wesley rating 7/10 reviewer Jason Bennett ISBN 0201752808 summary A concise reference to every class and method in Java 1.4, with examples for many.

What's the Book About?

The Almanac is divided into four main parts: packages, which covers every package in the core Java distribution, with the exceptions of the AWT, Swing, and printing; classes, which lists every class in alphabetical order, including all of its methods and fields; topics, which details the changes between each version of Java; and cross-reference, which allows you to look up every class, interface, and member type in Java 1.4.

Section 1, the package list, gives you every package in Java 1.4, every class inside those packages, the top-level description of the classes (from Sun's JavaDoc), a note of what JDK version the class was born in, an abstract/final indicator, and a hierarchy of the classes in the package. If this were all, it might be a nice, basic Java reference.

In addition to the strict listing, however, are hundreds of examples of how to use the classes; some basic, some obvious, and some you probably haven't seen.

The examples are extremely handy, if only to point out various utilities included with Java that you might otherwise not know about. With over 500 examples in the book, there's probably one you haven't seen or want to understand better.

There's also a website with all the code available at javaalmanac.com, so you don't have to type in every example you want to use in your code.

Section 2 provides a listing of every class in the covered packages in alphabetical order, along with all the signature of every public method in those classes. The book also cross-references every example in part 1 for each method. So, if you want to know how to better use ResultSet.afterLast(), you only need find the ResultSet class, and next to the afterLast() method are the two examples that use that method. With this easy organization, it's very straightforward to find any example you're looking for.

Part 3 goes through every major JDK release, starting at 1.0, and tells you everything you could possibly want to know about that release. You can find a statistical analysis of each release, including how many packages, classes, and members there are, how many classes in each package, new and removed classes and methods, deprecations, and all defined exceptions. I've certainly never seen a better or more compact reference on the differences between the JDKs.

Finally, part 4 gives a complete cross-reference for every class, interface and member mentioned. If you want to find every class that throws a ParseException, this is the place to find it.

What's Bad?

The one bad thing that strikes me about this book is actually just a simple question: Why should I use it when most of this information is at my fingertips in an IDE? Sun's JavaDoc is nicely thorough, and includes most everything in this book, the examples being a notable exception. Parts 3 and 4, of course, are not at all included in the JavaDoc, but I'm not sure how often I might need those sections.

So What's In It For Me?

If you're a down-and-dirty professional Java programmer, this book may very well be useful to you. The examples are quite handy, and as a reference to Java, it covers most anything you might need. Much of the information in the last two sections is hard to find in one coherent compilation. At $25 MSRP, it's an excellent value for all the information packed into the book.

Table of Contents
  1. Preface
  2. Part 1: Packages
  3. Part 2: Classes
  4. Part 3: Topics
  5. Part 4: Cross-reference

You can purchase Java Developers' Almanac 1.4 Vol. 1 from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

111 comments

  1. This is a very nice book. by croanon · · Score: 0, Flamebait

    To keep while programming. I was very pleased with the previous version.

    --
    Dear Bill, do you have a .net tatoo on your ass for marketing?
  2. Perfect by jimmyCarter · · Score: 4, Interesting

    This is what I'm looking for when picking up a book to pick up a new language. Give me the class library API and some examples. For more advanced topics like multi-threading, I'm going to want something with maybe a little more depth and background on the topic.

    Whenever I'm developing Java or C#, I spend most of my research time just browing the base class libraries anyway, so I can't think of a better toilet-time companion.

    Thanks for the review.

    --

    -- jimmycarter
  3. Cheaper on Amazon by ProlificSage · · Score: 4, Informative

    Check it out here for $17.99 USD.

    --
    Real software engineers regret the existence of COBOL, FORTRAN and BASIC.
    1. Re:Cheaper on Amazon by RocketJeff · · Score: 2, Informative
      If you're doing price comparisons for books, Best Book Buys can't be beat.

      A search for The Java Developers Almanac v1.4 by ISBN shows that there are several shops (including my favorite, BookPool) with lower prices then Amazon.

    2. Re:Cheaper on Amazon by Anonymous Coward · · Score: 0

      Yeah, everyone go order it from that link so this jackass can get referral bonuses.

      It was such a +5 Informative post, too. Because us /.ers would never think to look for a book on a site called amazon.com

  4. Almanacs, cookbooks, bibles... by smittyoneeach · · Score: 0, Offtopic

    ...waiting to see Guide to Intimacy...

    --
    Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    1. Re:Almanacs, cookbooks, bibles... by CMRichar · · Score: 1
      Ummm, they already have a dummies series for that....covers Dating, Romance, and Sex...... and if there's dummies books, there's gotta be higher level books as well....

      Sometimes i ph33r myself....

      --
      "Good night, good work, sleep well, I'll most likely kill you in the morning." - Dread Pirate Roberts
  5. Java business model by Anonymous Coward · · Score: 1, Funny
    1. Publish book on Java
    2. ???
    3. Bankruptcy
  6. In case of Slashdotting! by Anonymous Coward · · Score: 0, Funny

    Java Developers Almanac 1.4 Vol. 1
    Posted by timothy on Wednesday November 27, @10:30AM
    Jason Bennett writes "The Java Developer's Almanac is an interesting cross-breed of a book. On one hand, it's a reference book for the entire Java 1.4 API, complete with a listing for every method in every class in the API. On the other hand, it's a mini-tutorial, as it comes with myriad examples of how to use various Java classes. In the end, though, it's a book geared toward the advanced Java developer, especially one facing a new part of the API who needs a little guidance." Read on for his review. Java Developers Almanac 1.4 Vol. 1
    author Patrick Chan
    pages 1007
    publisher Addison Wesley
    rating 7/10
    reviewer Jason Bennett
    ISBN 0201752808
    summary A concise reference to every class and method in Java 1.4, with examples for many.

    What's the Book About?
    The Almanac is divided into four main parts: packages, which covers every package in the core Java distribution, with the exceptions of the AWT, Swing, and printing; classes, which lists every class in alphabetical order, including all of its methods and fields; topics, which details the changes between each version of Java; and cross-reference, which allows you to look up every class, interface, and member type in Java 1.4.

    Section 1, the package list, gives you every package in Java 1.4, every class inside those packages, the top-level description of the classes (from Sun's JavaDoc), a note of what JDK version the class was born in, an abstract/final indicator, and a hierarchy of the classes in the package. If this were all, it might be a nice, basic Java reference.

    In addition to the strict listing, however, are hundreds of examples of how to use the classes; some basic, some obvious, and some you probably haven't seen.

    The examples are extremely handy, if only to point out various utilities included with Java that you might otherwise not know about. With over 500 examples in the book, there's probably one you haven't seen or want to understand better.

    There's also a website with all the code available at javaalmanac.com, so you don't have to type in every example you want to use in your code.

    Section 2 provides a listing of every class in the covered packages in alphabetical order, along with all the signature of every public method in those classes. The book also cross-references every example in part 1 for each method. So, if you want to know how to better use ResultSet.afterLast(), you only need find the ResultSet class, and next to the afterLast() method are the two examples that use that method. With this easy organization, it's very straightforward to find any example you're looking for.

    Part 3 goes through every major JDK release, starting at 1.0, and tells you everything you could possibly want to know about that release. You can find a statistical analysis of each release, including how many packages, classes, and members there are, how many classes in each package, new and removed classes and methods, deprecations, and all defined exceptions. I've certainly never seen a better or more compact reference on the differences between the JDKs.

    Finally, part 4 gives a complete cross-reference for every class, interface and member mentioned. If you want to find every class that throws a ParseException, this is the place to find it.

    What's Bad?
    The one bad thing that strikes me about this book is actually just a simple question: Why should I use it when most of this information is at my fingertips in an IDE? Sun's JavaDoc is nicely thorough, and includes most everything in this book, the examples being a notable exception. Parts 3 and 4, of course, are not at all included in the JavaDoc, but I'm not sure how often I might need those sections.

    So What's In It For Me?
    If you're a down-and-dirty professional Java programmer, this book may very well be useful to you. The examples are quite handy, and as a reference to Java, it covers most anything you might need. Much of the information in the last two sections is hard to find in one coherent compilation. At $25 MSRP, it's an excellent value for all the information packed into the book.

    Table of Contents
    Preface
    Part 1: Packages
    Part 2: Classes
    Part 3: Topics
    Part 4: Cross-reference

    You can purchase Java Developers' Almanac 1.4 Vol. 1 from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

    1. Re:In case of Slashdotting! by Anonymous Coward · · Score: 0

      "Flamebait"? I thought that was funny.

  7. Re:Java 1.4 outdated? by muyuubyou · · Score: 1

    You obviously don't know a thing about Java. My recommendation is not to post when you have nothing to say. We have enough crap here at Slashdot forums.

    Please don't take it as an offense.

  8. Java in 6 easy steps by photon317 · · Score: 0, Funny


    1. Buy Java for Dummies book, write a cute web applet
    2. Get $100,000 job coding Java for some corporate application.
    3. Watch your self-esteem fall through the floor over the course of 3 years at that job, from realizing that the only language you know sucks ass, your products are all bug-ridden and bloated, and your source-code is grossly inefficient and unreadable.
    4. Quit job, become crack addict bum on downtown street that other Java developers at an earlier stage than yourself stare at and don't give money to.
    5. In a drunked cracked-out haze, have a moment of Zen enlightenment, and dawn upon the reality of computers, unix, and all the better languages out there.
    6. Clean up, move in with parents, learn , get a real job, feel good about your code, live happily ever after.

    --
    11*43+456^2
    1. Re:Java in 6 easy steps by Vaulter · · Score: 5, Funny


      4. Quit job, become crack addict bum on downtown street that other Java developers at an earlier stage than yourself stare at and don't give money to.


      Was that you I walked by this morning?

      Sounds like someone is a little envious of us successful, well paid, easy job, lots of spare time for OSS java developers who date lingerie models 2 at a time.

      --
      I don't have a sig...Do you??
    2. Re:Java in 6 easy steps by ggruschow · · Score: 0, Offtopic

      So, you're enjoying living with your parents?

    3. Re:Java in 6 easy steps by Anonymous Coward · · Score: 1, Funny

      Yep, we are jealous all right. Of both of you.

    4. Re:Java in 6 easy steps by Anonymous Coward · · Score: 0

      7. Start sleeping with photon317's "model" girlfriend.

      Still waiting for that proof.

    5. Re:Java in 6 easy steps by photon317 · · Score: 2


      Oh fuck off loser. It was funny. And no, it's not from experience, I just made that up because I hate Java, in case you couldn't get that.

      --
      11*43+456^2
    6. Re:Java in 6 easy steps by photon317 · · Score: 2


      Still waiting for somewhere to send it, you dumb shit AC.

      --
      11*43+456^2
    7. Re:Java in 6 easy steps by photon317 · · Score: 2


      And I'd like to add that this last comment you made is getting a bit offensive now. In your world you're making a stupid comment about something fake. Over here in reality-land, you're talking about my future wife. Tone it down.

      --
      11*43+456^2
    8. Re:Java in 6 easy steps by Anonymous Coward · · Score: 0

      I just made that up because I hate Java

      Just like you made up that story about your "drop dead gorgeous supermodel girlfriend"?

    9. Re:Java in 6 easy steps by Anonymous Coward · · Score: 0

      *sigh*

      You can send the "proof" to photon317chick@hotmail.com. And I think its a little wierd that you are so defensive about your VirtualGirl.

    10. Re:Java in 6 easy steps by Anonymous Coward · · Score: 0

      And by the way, you're the one that's pulling out the vulgar language. I haven't thrown one dirty word your way. You didn't have to insist that you have proof. Since you have, I want to see it. photon317chick@hotmail.com

  9. almanac definition by Anonymous Coward · · Score: 0
    From webster's: ........
    2 : a usually annual publication containing statistical, tabular, and general information

    Just in case anybody else out there, like me, was totally thrown for a loop by the book title.

  10. A moment of clarity by Anonymous Coward · · Score: 2, Funny
    At first I thought to post a standard "I hate Java 'cos it's slow" flamebait, but as I was writing it I suddenly felt empty and tired as if trolling had become devoid of any meaning.

    Then I realized what's wrong. I'm 31, I have a good secure job and I am financially well off. Yet, I am still a virgin, I've never even kissed a woman and I spend inordinate amounts of time on the web trolling Slashdot. Instead of this shit I could be chatting with my coworkers, making friends after work and actually having fun in the real world instead of downing a sixpack every evening alone at home and jerking off to some porn before I go to sleep.

    Goddamn I'm depressed. Life is hell.

    1. Re:A moment of clarity by Anonymous Coward · · Score: 3, Funny
      The holidays are hard on all of us.

      "us" being the slashdot virgins.

    2. Re:A moment of clarity by cyt0plas · · Score: 1

      Hey, I'd rather be in your shoes.
      Imagine a geek with _very_ expensive hardware tastes, who can't get a job, and even gets turned down by Jack in the Box due to lack of experience, despite the fact I spent 4 years working a register.

      Not only have I never kissed a girl, I m poor and can't get a job to save my life. Now _that_'s depressing.

      --
      Contact Me (got tired of viruses emailing me).
    3. Re:A moment of clarity by Anonymous Coward · · Score: 0

      "us" being the slashdot virgins.

      that's a bit redundant, isn't it?

    4. Re:A moment of clarity by Anonymous Coward · · Score: 0
      those who can do.


      those who can't run for congress.


      plus don't forget that the gubmint is *always*
      hiring.

    5. Re:A moment of clarity by suffocate · · Score: 0

      hahahahahahahahahahahahahahahahahahahahaha

    6. Re:A moment of clarity by Anonymous Coward · · Score: 0

      Darwins law, natrual selection says you won't get any further (or have a family). Are you happy with that? Prove em wrong and get off your ass and go clubbing with co-workers.

    7. Re:A moment of clarity by hendridm · · Score: 2

      > Imagine a geek with _very_ expensive hardware tastes, who can't get a job, and even gets turned down by Jack in the Box due to lack of experience, despite the fact I spent 4 years working a register.

      Wow, you're preaching to the choire, brother. You have basically described me exactly. After graduating from college, I got turned down for all the good jobs of course, but I even got turned down for a job at Sears and Lowe's despite having a little over 3 years experience doing customer service and register and a local hardware store. Best Buy finally gave me a job, but they don't care much for my bachelor's degree and I don't think I fit the corporate culture very well...

      On the bright side, I have a girlfriend whom I love very much and have been serious with for quite some time. Best of all, she's a geek too (I saw her once take a wireless-enabled laptop to the shitter, which is something I have not done yet).

    8. Re:A moment of clarity by hendridm · · Score: 1

      My coworkers are losers too. I'd rather just go clubbing by myself and meet some real poeple...

    9. Re:A moment of clarity by cyt0plas · · Score: 1

      Hey, at least you have female companionship :)

      She may be a geek, but can she _integrate_ the wireless laptop with the toilet, so you can flush it from any internet-ready pc?

      --
      Contact Me (got tired of viruses emailing me).
    10. Re:A moment of clarity by Anonymous Coward · · Score: 0
      clubbing? i went to a club onece it was all, "uh-tss-uh-tss-uh-tss...".


      hey and my computers keep me warm (i only have 3, so not that warm). Now just to find awarm and moist spot.. i mean....

    11. Re:A moment of clarity by david_g · · Score: 1

      Here's a book that may interest you, although it's incomplete.

      As someone who understands, I say hang on, brother. Life has good things in store for us. You'll see.

    12. Re:A moment of clarity by Anonymous Coward · · Score: 0

      Ah yes, another Microsoft employee speaks out! I have a couple friends in your situation. Hope things turn up for you soon!

    13. Re:A moment of clarity by Anonymous Coward · · Score: 0
      clubbing? i went to a club onece it was all, "uh-tss-uh-tss-uh-tss...".

      It was... a bummer

  11. One tiny almost pointless nitpick... by sawilson · · Score: 4, Insightful

    There's also a website with all the code available at javaalmanac.com, so you don't have to type in every example you want to use in your code.

    Maybe it's just me, but I force myself to type in
    every example by hand from a book because I find
    I have better comprehension of the material down
    the road. But then again, I'm not "one who loves
    code". I'm more of the writing code to automate
    tasks type as apposed to a hardcore, sit in front
    of your favorite editor for 8 hours straight making
    elaborate things type person. Those guys are special
    in a weird but positive way. A guy I used to work
    with named Robert Sanders was the type that just
    looked at code and "got it". Definitely not my
    thang. He'd probably benefit from going to the
    website for a cut and paste.

    1. Re:One tiny almost pointless nitpick... by Anonymous Coward · · Score: 0

      Hey, I didn't ask for your whole life story.

    2. Re:One tiny almost pointless nitpick... by Disco+Stu · · Score: 1

      Good try, Robert Sanders. We're still not going to hire you.

    3. Re:One tiny almost pointless nitpick... by sawilson · · Score: 2

      Actually, Robert was the CTO at the time. He's famous for his part in creating dos emulation for
      unix. You'd be lucky to hire him, assuming you
      could afford him. I'm just lowly sawilson famous
      for nothing that important.

    4. Re:One tiny almost pointless nitpick... by Enonu · · Score: 2

      The Tao of Programming - Book 4, Section 4

      Prince Wang's programmer was coding software. His fingers danced upon the keyboard. The program compiled without an error message, and the program ran like a gentle wind.

      ``Excellent!'' the Prince exclaimed, ``Your technique is faultless!''

      ``Technique?'' said the programmer turning from his terminal, ``What I follow is Tao - beyond all techniques! When I first began to program I would see before me the whole problem in one mass. After three years I no longer saw this mass. Instead, I used subroutines. But now I see nothing. My whole being exists in a formless void. My senses are idle. My spirit, free to work without plan, follows its own instinct. In short, my program writes itself. True, sometimes there are difficult problems. I see them coming, I slow down, I watch silently. Then I change a single line of code and the difficulties vanish like puffs of idle smoke. I then compile the program. I sit still and let the joy of the work fill my being. I close my eyes for a moment and then log off.''

      Prince Wang said, ``Would that all of my programmers were as wise!''

  12. Checked it out by Rew190 · · Score: 5, Insightful

    Looked like a good book for beginners or those who don't want to view Javadocs over the 'net.

    Unnecessary for anyone who's either comfortable with Javadocs or has done a moderate amount of OOP.

    As was stated, you can get just about everything in this book online directly from Sun, for free.

    1. Re:Checked it out by Anonymous Coward · · Score: 0

      The same thing is true of Python: Essential Reference and several other books, but they're handy when you're not near a computer.

  13. Printed API references considered harmful by Bemmu · · Score: 4, Insightful

    I have never understood printed API references. It's so much easier to be able to do a quick find on a computer. Reminds me of some Linux book that was just printed man pages. Yes I like reading real books rather than looking at a screen, but if I need to reference an API I'm already looking at the screen!

    1. Re:Printed API references considered harmful by Anonymous Coward · · Score: 0
      I have never understood printed API references. It's so much easier to be able to do a quick find on a computer. Reminds me of some Linux book that was just printed man pages. Yes I like reading real books rather than looking at a screen, but if I need to reference an API I'm already looking at the screen!

      I concur. I don't buy Java books that reprint the entire API, because they're going to be obsolete in a hurry. Plus, it strikes me as sort of a ripoff, selling some poor beginner sap something they can readily get for free at

      http://java.sun.com/j2se/1.4.1/docs/api/

      or included with the free JDK. OTOH, it sounds like this book has more to offer than just the API, so maybe its only crime is being a lot thicker than it needs to be.

    2. Re:Printed API references considered harmful by west · · Score: 5, Insightful

      Online references are all well and good if you already know exactly what you are looking for. However, a printed manual is ideal for browsing. I read them over on the subway rides. I'm not trying to memorize every class and method name, just learn what classes and methods are available.

      I can then use online help to lookup the details later on. (The old "I know there's a class that does this...") Without the paper copy, it's far too likely that I'll only use classes that I have been made aware of in previous projects.

      It's also why I find the absence of printed manuals for many programs very annoying. Why bother to add a feature to a product when most of your users will never learn that the feature exists!

    3. Re:Printed API references considered harmful by n3m6 · · Score: 3, Interesting

      i found the exact opposite to be true. i learned php thru just the o'reilly pocket reference. its so much easier just to browse thru the functions and see what will suit where. and/or read it at some coffee shop just to learn what the language/library has to offer. since i know c++ i have to grasp on to java's API to learn it.. i think this book will do good for me..

  14. you left two steps out by kin_korn_karn · · Score: 0, Offtopic

    0. Be born into priveliged family in Bangalore or Calcutta

    7. Profit!

    1. Re:you left two steps out by kin_korn_karn · · Score: 0, Offtopic

      oh wait, I forgot, you're an H-1B, you get $50k instead of $100k

  15. Printed APIs and Java 1.4 comments by Hirofyre · · Score: 3, Interesting

    The one bad thing that strikes me about this book is actually just a simple question: Why should I use it when most of this information is at my fingertips in an IDE?

    I like having this sort of info in print, even though what you say is true, it is available from most IDEs. It is nice to be able to put a post-it note or write a reminder in some classes who's method signature are not too intuative.

    Having been a java programmer for 3 or so years, I think Java 1.4 is a big step forward, and a lot of the newer packages are great additions (the logging package, for example). The flexability of that package alone makes Java a lot more robust and attractive.
    1. Re:Printed APIs and Java 1.4 comments by jkm_jkm · · Score: 1

      What? Logging the feature that makes Java more robust and attractive? Well, if that was the only thing holding you back from using Java, all you had to do was write the 17 line Logger class.

  16. Another Book review?!?! by tundog · · Score: 0, Flamebait

    So whats the deal with all the book reviews lately? Anyone else suspect that these posts are direct marketing ploys....

    On another note, who are the morons that need a Java API book. Why waste your time flipping through pages to find a class definition when you can 'click' on the class name from and alphabetical list from Sun.

    Who are these people that buy this trash!?!?

    --
    All your base are belong to us!
    1. Re:Another Book review?!?! by stratjakt · · Score: 1

      You cant take Sun's online help to the shitter.

      Well, maybe you can, but I cant.

      And I agree, there's probably some kind of promotion agreement behind the scenes.

      But, it gives the trolls another chance to get first post, so it cant be all bad.

      --
      I don't need no instructions to know how to rock!!!!
    2. Re:Another Book review?!?! by Anonymous Coward · · Score: 0

      On another note, who are the morons that need a Java API book.

      Questions should end in question marks. The irony kills me.

  17. Java growing in leaps and bounds by Anonymous Coward · · Score: 0

    It is nice to see some good books on Java api coming out. I have the Chang's refrence book that I use often.

    Another good source for Java api's and example are java.sun.com and jguru.

    In our corporation Java is winning hearts all over due to its scalability and stability. We are migrating to linux and that has been easy as candy.

  18. Sounds better than... by GeckoFood · · Score: 3, Interesting

    Java Complete, by Sybex. That book touts itself as a cheap book to learn Java and even has a good dump of the APIs at the end of the book. That said, it has got to be one of the most poory assembled books on Java I have seen. There are a few glimmers of intelligence in there, but as a whole the book collapses under its own poor organization. It's also for an older version of Java...

    Hopefully the API listing is the only thing JDA has in common with Java Complete.

    --
    Be excellent to each other. And... PARTY ON, DUDES!
    1. Re:Sounds better than... by brickbat · · Score: 1

      Java Complete, by Sybex. That book touts itself as a cheap book to learn Java and even has a good dump of the APIs at the end of the book. That said, it has got to be one of the most poory assembled books on Java I have seen.

      If it's anything like the HTML book I bought a few years ago, then the Java book is probably a compilation of various chapters from other, more in-depth books published by Sybex, and priced low (like $20). It's meant to be a "sampler" to entice you to shell out for the other titles. The only interesting chapter I found in HTML Complete was from Web Sites that Suck, which was outdated probably before publication, and several of the chapters (and the CSS reference) were IE-specific, so I'm not sure it was a good buy even at 20 bucks.

  19. comprehensive but somewhat redundant by Anonymous Coward · · Score: 1, Insightful

    An impressive, 1000 page plus tome. It has four parts, but the first two are the bulk of the book. Part 1 lists each java package. Within a package, it tells of each class and interface and provides examples of how to do often needed tasks. You already need to know java to fully take advantage of this. Part 2 is an alphabetical listing of all classes, from all packages. For each class you can see its ancestors and all members of the class, with calling arguments and return values. Part 3 has miscellaneous topics; most usefully the difference between java 1.3 and 1.4 (the latest), as in the title. Part 4 is basically an index, being a cross reference of classes and interfaces.

    The sweep of the book is comprehensive and up to date. But of limited use. Part 2, which is half the book, differs in no material way from this URL- .... Sun makes this available on the web as an aid to java programmers. Other websites also publish it. In addition, you can copy the manual and have it available locally on your computer. My mode of programming involves bookmarking the URL and having a browser window dedicated to it during coding. Not just me. In various companies and universities, I've seen others do this.

    Are you old enough to remember log tables? These were books of logarithms, powers and trigonometric functions. Prior to the advent of pocket calculators, students would have their own copies. They were comprehensive and correct. Now totally redundant. That is what Part 2 reminds me of. Granted, if your computer has no web access, then you need the equivalent of Part 2. But how many programmers today cannot browse?

    The book needs to go on a diet.

    The three other parts do have some utility. At least you should be sure of that before purchasing

    #Wes

    1. Re:comprehensive but somewhat redundant by stratjakt · · Score: 2, Funny

      You do realize that not every workstation has access to the web, espescially when you consider that java is an EMBEDDED platform.

      And even those that do, it gets knocked out from time to time.

      Plus, many developers (myself included) like to do the bulk of our stuff in a 'sandbox', completely disconnected from the network at large.

      And how many programmers have WWW access in the toilet, where most research is done.

      --
      I don't need no instructions to know how to rock!!!!
    2. Re:comprehensive but somewhat redundant by Si_Cowboy_03 · · Score: 1

      Who cares if the development computer has Web access - just because the JavaDocs are in HTML doesn't meen you have to be online to read them! Find an Internet connection, download the docs, put docs of development machine. Done, $25 and HOURS flipping through pages saved. I can't image developing in Java with a paper copy of the API docs. Flipping through pages sucks compared to clicking on hyperlinks! I can't see why anyone would want a paper copy of an huge API....

  20. Book by jbmoll · · Score: 2, Interesting

    How come people can keep creating new books on languages even though there are 10,000 books about it allready out there. They all pretty much repeat each other over and over. Use the newsgroups or web for some real help!

    --
    J Moll - PC Load Letter - I know what it means!-
  21. useful but a lot of redundancies by hashmap · · Score: 3, Informative

    I found the Almanach to be extremely useful in displaying the intended usage for many of the classes. Java builds on numerous desing patterns that can be overwhelming for a novice.

    For example just browsing the API I had a hard time figuring out how to use the crypto package to encrypt data. The almanac shows that in ten lines.

    In many respects the Almanach is superior to the "Java Cookbook" by O'Reilly because this latter spends way to much time on trivial implementations.

    The aspect that I don't like is the huge index(or listing at the end whatever that is). I found that to be totally useless. There are dozens of methods with identical names anyway so finding the one you need is easier to do on the package level in table of contents. This index makes the book unnecessarily bulky.

    i.

  22. Why? by naoursla · · Score: 2

    Why would I ever need to buy a book with the Java api? They aren't updated, don't have hyperlinks, don't support copy/paste, don't open to the correct page when I press help, and aren't free.

  23. very helpful book by nuffle · · Score: 3, Informative

    I have a copy of one of the earlier editions, and it quickly became one of the most ragged and tattered computer books i owned. Although there is more detailed info available in javadocs, having all the classes, methods, and members available in a print is very helpful. I found it much easier to quickly thumb to a certain class when I couldn't remember the order of some arguments or the name of an attribute.

    Just note that no method or attribute descriptions are included in the book, just the method signatures or the attribute types. You have to already know basically what everything does (or be able to deduce it from names), and just use this to jog your memory. So despite what some other posters say, this isn't a beginner's book.

  24. Don't waste the money by Capt_Troy · · Score: 3, Interesting

    Save it for LOTR TTT...

    I'm been tasked with Java development lately (and unfortunatly). In my experience, you buy a book detailing the Java API, then in half a year, it changes and your book is out of date and you can't use it for fear that you might end up using a depricated method. Just buy a java programming concepts book (but even these fade quickly) and use the Javadoc to get your API info. Spend the rest on movie tickets to support the MPAA (oops, did I say that?)

    1. Re:Don't waste the money by hosebee · · Score: 3, Informative
      In my experience, you buy a book detailing the Java API, then in half a year, it changes and your book is out of date and you can't use it for fear that you might end up using a depricated method.
      In my experience, you might want to get more experience.
      • All the major java compilers have a flag to alert the user when he/she is using deprecated methods.
      • The fact that deprecation is part of the language should tell you that Sun realizes forcing abrupt API changes is counterproductive.
      • If you start/started with 1.2 or later, the number of deprecated methods you are likely to see or have to migrate is in reality very small.
      Having said that, I do agree with you that you shouldn't waste the money; only because the full APIs are free (and usable via HTML) from Sun. Only someone with a paper fetish may want a hardcopy of the API. You should buy a book that deals in depth on a topic concerning you (JDBC, threads, beginning, etc.)

      I carry knowledge of Java in my head for the same reason I carry a Leatherman: it's no good approaching every problem with only a hammer.

      Remember, paper is just a tree recycled.
    2. Re:Don't waste the money by Capt_Troy · · Score: 4, Interesting

      Good points... My comments below:

      All the major java compilers have a flag to alert the user when he/she is using deprecated methods.

      This is true, however, better to use the non-depricated methods instead and if your reference is old, you won't be able to tell.

      If you start/started with 1.2 or later, the number of deprecated methods you are likely to see or have to migrate is in reality very small.


      I actually started with 1.1.6 and purchased an API book (stupid). Well, when 1.2 came out there was something like 2000 new classes and my books were totally useless. Since then, you are correct, very few depricated methods. But the book experience made me bitter :)

    3. Re:Don't waste the money by jkm_jkm · · Score: 1

      Hate to knock your penmanship, but 'depricated' is spelt differently. It is really quite embarassing when you try to pass on wisdom and can't even spell a keyword!

    4. Re:Don't waste the money by Capt_Troy · · Score: 2

      It's quite embarassing when the only argument you can make against my comment is that I spelled a word wrong...

  25. Why would I buy the javadoc? by peterpi · · Score: 4, Informative
    "Section 1, the package list, gives you every package in Java 1.4, every class inside those packages, the top-level description of the classes (from Sun's JavaDoc), a note of what JDK version the class was born in, an abstract/final indicator, and a hierarchy of the classes in the package. If this were all, it might be a nice, basic Java reference."

    No! If the book was just what's here, it would be just a copy of information of information that is freely available on the internet!

    So many books on Java seem to include a copy of the Javadoc documentation. It's just a con to make the book look bigger.

    Well done Bruce Eckel for resisting this cheap tactic in the brilliant Thinking in Java.

    1. Re:Why would I buy the javadoc? by Felipe+Hoffa · · Score: 2

      Before writing that, did you consider that Thinking in Java is freely available on the internet?

      Fh

      Ps: Just to make it clearer, there might be reasons for buying a book composed of material that you may also get free on the Internet. According to Eckel's words, leaving the book online hasn't affected its sales.

    2. Re:Why would I buy the javadoc? by peterpi · · Score: 1

      No, I forgot about that! That said, I'd hate to read a book on my screen. APIs on the other hand are well suited to html; lots of jumping about from one function to another.

      The rest of this thread has answered my question though; plenty of people seem to buy stuff they know they can get online, just so they can browse during spare time. Forward planning, what a novel idea! ;)

  26. This or Core Java 2? by Myrke · · Score: 1
    I was wondering if it's worth picking this book up if one already has the Core Java 2 series.

    1.4 is obviously more updated than 1.2, but does that make my Core Java books obsolete in terms of API info? It's still got the concepts of Java (making it non-chuckable), but I am curious if I should pick this book up or just look on the Sun site to check out the new API additions.

    I guess it's only $20 or so...

  27. Nice modding... by Anonymous Coward · · Score: 0

    And thanks for the added carriage return at the end of each line. My browser wasn't doing a good enough job of word wrapping and you saved me a lot of hassle.

  28. Better than a copy of the API by wormbin · · Score: 3, Informative

    I see lot's of post saying things like why would I want to read this when I have the free 1.4 API javadocs online?

    I agree. The best books aren't copies of the API that tell you all the good things about the language. The best books show you the warts and gotchas of the language. For C++ this book was Scott Meyer's Effective C++. Java has a similarly named and equally useful book Effective Java which I have found invaluable. Not as good but still worth the purchase price is Java Pitfalls

    I haven't read More Java Pitfalls Has anyone read this? Is it any good?

  29. Re:Java 1.4 outdated? by muyuubyou · · Score: 1

    But you may know that Java 2 starts at 1.2 and has nothing to do with version numbers.

    Did they teach you not to sum apples & oranges at elementary school?

  30. Let me save you $24.99... by dconder · · Score: 4, Informative

    Section 1, In addition to the strict listing, however, are hundreds of examples of how to use the classes; some basic, some obvious, and some you probably haven't seen.

    All the examples.

    Section 2 provides a listing of every class in the covered packages in alphabetical order, along with all the signature of every public method in those classes.

    Java 1.4 spec.

    Part 3 goes through every major JDK release, starting at 1.0, and tells you everything you could possibly want to know about that release.

    I guess you would have to figure this part out yourself, but what real value is it anyway?

    I know, I know, it's nice to have this in book form, but the sooner you learn how to parse through what javadoc provides, the better. Especially if you are serious about learning/using java, you need to become familar with javadoc. Plus the APIs are still changing, and the Sun website will always have the most up-to-date information. It takes a while to get used to looking at documentation online, but once you are familar with it, you will be proficent in finding what you want in no time.

    The real value of the books seems to be the examples, but they are all on-line too.

    Seriously, don't buy this book. If you want something that will truely make you a better Java programmer, get Effective Java. That book is worth its weight in gold.

  31. the examples from this book are first-class by monique · · Score: 0

    I haven't actually bought this book yet, but I plan to do so. Not because of the class listings -- as several have mentioned, these are just javadocs on paper -- but because of the examples. I found the book's website while searching for a solution to a particular problem. I was able to use the examples to solve my problem, but that was just the beginning. I found myself browsing through the examples, picking up lots of great little tips and tricks. Sure, a lot of it was old hat, but these examples are really easy to follow and definitely shore up the weak spots in java documentation, which all too often assumes that a method's definition is all you need to understand its proper use.

    --
    -monique
  32. Book written by Perl by Si_Cowboy_03 · · Score: 1

    It looks the author made a Web site full of examples, the wrote a Perl script to generate the book. Pretty clever way to sell 1000 pages of text, which anyone get free anyway!

  33. When are people going to figure out... by Lord+of+the+Fries · · Score: 0, Flamebait

    That when a language needs a gazillion books to try and win its acceptance, maybe something's wrong with the language.

    --
    One man's pink plane is another man's blue plane.
    1. Re:When are people going to figure out... by irritating+environme · · Score: 1

      Java has a huge, standardized API and concept breadth, from Networking, I/O, JDBC, JNDI, JMS, RMI, Serialization, Threads, and 1.4 added a WHOLE LOT MORE. That's why there is a large number of books.

      C# had 5 years to improve on Java, and really didn't, beyond some additional syntactic sugar. The language has a few twists that C/C++ don't have, but C++ is more complicated (and much less standardized) than Java and its APIs.

      --


      Hey, I'm just your average shit and piss factory.
    2. Re:When are people going to figure out... by buckinm · · Score: 1

      And just how many books are out there about C & C++?

      --
      This isn't any ordinary darkness. It's advanced darkness.
  34. Poor imitation of Java in a Nutshell by zapatero · · Score: 1


    Forget "JD Almanac", it's just trying to muscle
    in on David Flanagan's successful J in a Nutshell
    books. Flanagans' first five chapters make
    up the best overview/tutorial on Java.

    The Almanac copies Flanagan's format, but fails
    at the quality.

  35. This book has this lazy name because... by the+cobaltsixty · · Score: 1

    Its not from Wrox neither OReilly.

    If it came from O'Really... oh, they made it. Its called Java in a Nutshell: The Almanac, or something like that.

    I think Wrox made the same book too, with a twist. Its called: Professional Java Programming: The Almanac. And for each Java Package, theres a chapter about it. Written by a different author. Different authors arent that bad, since all of them come from India. Now this is bad.

  36. A voice from back there somewhere by DannyO152 · · Score: 1

    I use the html documentation, especially when I want to get a glimpse of how a method is working, but sometimes just pulling a book off the shelf and looking something up feels like the right approach. I've been a buyer of the Developers' Almanac series since the 1998 edition and will continue to buy future editions. Though, if there are to be future editions, I think the publisher should rethink the division between volume 1 and 2, especially if they are not available at the same time.

    (Though if these threads are any indication, the market for these books is disappearing. I think the original concept was for Addison-Wesley to provide annual updates, more like a real almanac, but the api's expanded immensely and stopped progressing on a timetable. It seems to be a lot of work to produce these and I wonder if recent editions sell as much as the ones for jdk 1.1 and jdk 1.2)

    Color me old-school, I still go over and look up words in the dead tree dictionary. I also find it easier to take in the whole page when it's portrait format rather than landscape. Certainly, it's my failure to get with the times in this brave new world.

  37. Hey ! I resent that.... by GreggBert · · Score: 1

    Not all of us drink (anymore).

    --


    If you don't understand anything I post, please accept that I ate paste as a small boy...
  38. as if you'd need this book by Anonymous Coward · · Score: 0

    Sorry, but Java's documentation is the best out there. I have never had an easier time learning and being productive with a programming language. I just keep a browser window open with a local copy of the API loaded up, and just scroll down to whatever class I want to look at. It's beautiful! It actually encourages you to look things up, ratehr than floundering around.

    At the opposite end is MS's HTML-help MSDN documentation. It's all there, I guess, and complete, but somehow it's just nowhere near as easy to use for me.

  39. Concise ? You must be kidding ! by Choron · · Score: 1

    I don't intend to troll and I'm sure you held a copy of that book in your hands but how can you seriously write it's concise ? I've seen it in a bookstore the other day and all I can say is that it's big, over 1000 pages and bulky. Regarding it contents, I think it's totally useless. If you install the Winhelp format of the Java documentation (there's one for the JDK1.4 but also the J2EE API and others) you will you find information much quicker (and it's free). A&W books are usually great but that one is a waste in my opinion.
    PS: You can find the Winhelp documentations at this address: http://www.confluent.fr/javadoc/javadoce.html

    --
    "Naughty, naughty, naughty, you filthy old soomka !"
  40. much better java books by cbare · · Score: 1
    This book is pointless unless you see value in a hard copy of the JavaDocs. The best Java books I know of are: Thinking in Java and Effective Java. Other strong contenders are: The Java Cookbook and Java Examples in a Nutshell.

    All of these books explain the thinking behind the design of the language, the APIs, and common idioms. This is much more valuable information to express in the form of a book than is an API reference. A clickable API reference is freely available from Sun here: http://java.sun.com/j2se/1.4/docs/api/

    p.s.

    # comment processor
    while ( <> ) {
    if ( /(.*)(java sucks)(.*)/ ) {
    $uninformed_opinion=$1;
    $pointless_flamebait=$2;
    $blahblahwaaawaaa = $3;
    if ( do_i_care( $uninformed_opinion ) or
    do_i_care( $blahblahwaaawaaa ) ) {
    print "That comment was insightful and thoughtful.\n";
    }
    else {
    print "Piss off.\n";
    last;
    }
    }
    }

    sub do_i_care( ) {
    # not implemented yet, but this is a close
    # first approximation
    return 0;
    }
    --
    -cbare