Java In A Nutshell, 5th Edition Reviews



Amazon.com Customer Reviews

Java in a Nutshell - Review written on December 28, 2007
* * * * *
Rating: 5 out of 5
3 customers found this review not to be helpful.
Excellent book! Difficult to believe a "nutshell" is over 1200 pages, but that's Java.

Thank you,
Rick Rodgers
Great Reference - Review written on November 30, 2007
* * * *
Rating: 4 out of 5

This is a great reference book has great information, all of the basics and some of the more advanced concepts. However, this is not a must have, most of the information if not all of the information in the book can be found online.

If you like your documentation/references in print then this is your java reference.
Great book to refresh - Review written on August 26, 2007
* * * *
Rating: 4 out of 5
3 customers found this review not to be helpful.
Though I work on Java for 7 years, I still do not know many basic stuff. Even I know the big picture, I may not really know the detail. I learn a lot from this book.
I strongly suggest this book to anybody working on Java, even for experienced developer. It is a great book to review and refresh. You may be surprised there are something you did not really know and actually they are very important.

I should give it 5 star, but it wasted too much paper for printing API. It waste my money and it caused more tree to be cut. So 4 star.
Highly recommended - Review written on August 14, 2007
* * * * *
Rating: 5 out of 5
1 customer found this review helpful, 1 did not.

Highly recommended. Concentrated and well indexed information.
If you need a nutshell book for tiger, this is best one.
Superb as a textbook too.... - Review written on May 21, 2007
* * * * *
Rating: 5 out of 5
4 customers found this review helpful.

I teach an undergraduate course on Java, focussing on concurrency and other "advanced" features, and have found that the 5th edition of Java in a Nutshell makes an excellent textbook. It can be a little intimidating for some students at the start, especially those who prefer a wordier style with more asides and less meat, but they mostly get used to it and see the value. The initial tutorial material is fast-paced and well-suited to people who can already program, and the reference material at the back is incredibly helpful for beginners who need to browse the libraries to see what is available. Java is a big language, and this is a big book, but it's extremely useful.
Not for the beginner - Review written on May 13, 2007
* * * * *
Rating: 5 out of 5
3 customers found this review helpful.

This book is truly an excellent reference for Java, however, don't use it for much more than that. When I find myself needing to review old material, I have turned to this book first, for it lays out the intricacies and nit-picky details of the language in meticulous detail. The examples are few for each topic though, because there is so much to cover in a reference manual. Don't go in expecting to learn the complexities of the Java language from this book, but you will feel enriched whenever you find yourself needing to refresh your knowledge of the different means by which one can perform operations multi-dimensional arrays.
A Great Little Reference - Review written on February 21, 2007
* * * *
Rating: 4 out of 5
2 customers found this review helpful, 1 did not.

This is a great reference to have for quickly looking up information. You know, most of the stuff I look up here is already in the JavaDoc, but somehow, reading it all from a book seems to make more sense.
The Java Yellow pages - Review written on February 14, 2007
* * * *
Rating: 4 out of 5
4 customers found this review helpful.

If you re involved in Java development you'll enjoy having this book in the desktop.

It's a reference book, don't expect to use it as bed reading, I suggest other titles as "Learning Java" from the same publisher to fill your nights.

As a reference book it's a must have.
Rock-solid Java 5 reference - Review written on November 14, 2006
* * * * *
Rating: 5 out of 5
4 customers found this review helpful.

Although this book is an in-depth reference rather than a programming manual, I think it would also be useful to those who want to get an overview of the language. The first 160 pages contain an excellent description of the Java language along with a few carefully selected code examples. The next 150 pages introduce the Java platform as well as the new Java 5.0 features. All basic API functionality is described and exemplified by short code examples. Thus by reading the first 300 pages you get a concise, yet thorough overview of Java. The matter-of-fact writing style may not be everybody's cup of tea, indeed some may find it a bit dry. On the other hand, I find it much preferable to the wordy and chatty style of so many other "introductory" computer books. At least, the author isn't wasting my time. The largest part of the book -ca. 800 pages- is taken up by detailed API documentation. The book is well organised, meticulously accurate, and authoritative. You may want to come back to it often. I certainly do. Five stars because it's really useful.
Excellent, the one-stop shop for Java - Review written on August 05, 2006
* * * * *
Rating: 5 out of 5
3 customers found this review helpful.

This book really is the one-stop shop for Java language information. While many complain that the page count is very high and the book is slightly heavy, this is actually a *good* thing. I love the fact that all this info is in ONE book. One book to buy, one book to carry around, one book to reference, one book to bind them...hey wait a minute!

I seriously hope Oreilly keeps updating this book with Java 6/Mustang and beyond information. Thin books are way over-rated, we need more books chock full of useful information like this one.
Excellent book, AND door stop - Review written on July 26, 2006
* * * *
Rating: 4 out of 5
1 customer found this review helpful.

This book is really useful to have on hand, but it is HUGE for a nutshell book. I realize that they need every page to document the code it is just makes it hard to keep this book on the desk. Over all I think the book could have used more examples on how to make the method calls rather than showing the methods and what they do. Over all if you need a book that documents most of the java libraries this is an excellent choice, but don't expect to pick up this book if you have no programming experience and learn how to call these methods.
Indispensible - Review written on April 16, 2006
* * * * *
Rating: 5 out of 5
4 customers found this review helpful.

I use this Java book more than any other programming book I've ever had. That's probably because it's a reference book. Although all the reference material I could need is available online, I still like having the book on the desk next to me so I can look up a class or a method without playing around on the computer. I became a Sun Certified Java Programmer several years ago and although I've read many Java books before then and since then, the only book I would be hard pressed to do without is this one!
An essential part of any Java Programmer's inventory - Review written on March 23, 2006
* * * * *
Rating: 5 out of 5
4 customers found this review helpful, 1 did not.

I have coded Java for many years, and I have always considered the the successive editions of the nutshell book an essential reference. Whilst this book is not suited to learning Java, it is very handy when you need to look up the concise facts. I highly recommend this book even if you have previous editions. Java 5 has some significant changes, and you will run into problems if you don't take time to understand them.
Like the language, this book is bloated - Review written on November 28, 2005
* * *
Rating: 3 out of 5
8 customers found this review helpful, 7 did not.

I believe it says a lot about the state of Java as a language that 1,252 pages are required to describe the language "in a nutshell." Since the second edition, this book has tripled in size. Surely this book now goes beyond the scope of what is required to teach the basics of the language.
Java in a Nutshell - Review written on September 19, 2005
* * * *
Rating: 4 out of 5
6 customers found this review helpful, 1 did not.

I have very little experience with Java and I was required in an Object-oreiented Java course to come up to speed on object oriented concepts. Not only did I need to learn these concepts, I also needed to come up to speed on the basic elements of the language. This book was just what I needed. Like other O'Reilly "in a nutshell books", this one is great for a motivated learner. I would certainly like to see more graphic presentations; however, that would make the book very thick -- and heavy. Still, those of us who sit and stare at a screen all day, could benefit from the workout! Overall, a terrific book.
Still an essential reference - Review written on September 18, 2005
* * * * *
Rating: 5 out of 5
6 customers found this review helpful, 1 did not.

The "Java in a Nutshell" series probably peaked in usefulness around the second edition. The only reason it has eroded somewhat in value is:
1. The size of the language has grown to the point that key parts of the language - enterprise and foundation classes - were omitted and spun off into their own nutshell series.
2. Even the core portion of the language has grown so much that the resulting book has become quite unwieldy.
However, that being said, I would want a copy of this reference on my desk as long as up-to-date editions are in existence. You probably cannot learn Java from this book alone, but many key points on syntax and language features are concisely presented in the first part of this book along with good examples. Chapter four alone, on changes specific to Java 5, along with pertinent examples, is worth the price of admittance. The second part of the book is mainly just a listing of the javadoc, with some good notes and crossreferencing that make the information worthwhile. A good companion to this book is the latest edition of "Java Examples in a Nutshell" which contains many good illustrations of the Java programming language in action.
This is the NEW Java! - Review written on August 25, 2005
* * * * *
Rating: 5 out of 5
2 customers found this review helpful, 1 did not.

Java 1.5 (or 5.0, depending on whether you listen to the technical tpes or the marketing people), redefines Java - the biggest change since 1.2 (or was that 2.0?) and this book covers it all.

The author decided to make this a book that you could actually carry around with you, so he dropped most of the deprecated options, plus some of the lesser used packages (java.beans, .security.acl).

This book is important because Java, with version 5, has signiificant additions (generic types, a for/in statement, varargs, to list some of the lesser stuff). As in the previous editions, the author does a great job of providing a readable text that can benefit every level of experience. Not only does he cover every important feature, but he follows the text up with a comprehensive API Quick Reference. Either half would be worth the price of admission. Whether you're a Java pro or just interested in playing with the language, this book is an absolute must. And unless you work at home, I'd buy two.
Beware of the problems - Review written on August 10, 2005
* * *
Rating: 3 out of 5
16 customers found this review helpful, 3 did not.

This kind of classic book has its merit, but this version has quite a few problems
We don't want a 'man page' like reference book, the list of member functions with NO samples or descriptions are closed to useless.
For example: I looked at section 5.4 about Calendar,here is the code:
// Display the current time using a short time format for the current locale
DateFormat shortTime = DateFormat.getTimeInstance(DateFormat.SHORT);
DateFormat myformat = new SimpleDateFormat("yyyy.MM.dd");
Date leapday = myformat.parse("2000.02.29");

I don't remember the SHORT and yyyy.MM.dd, so I decided to check the reference. In DateFormat page, the book says "The getdateInstance( ) methods return a DateFormat object suitable for formatting dates in either the default locale or a specified locale. A formatting style may also optionally be specified; the constants FULL, LONG, MEDIUM, SHORT, and DEFAULT specify this style."

Does that make any sense? no, I don't know how to deal with Locale and the difference between those MEDIUM,SHORT stuff.

So I check my SUN javaDoc in a lovely windows chm format, it says so clearly about all the information I am looking for and even with a few examples! It also even put explainations in lists
"SHORT is completely numeric, such as 12.13.52 or 3:30pm
MEDIUM is longer, such as Jan 12, 1952
LONG is longer, such as January 12, 1952 or 3:30:32pm
FULL is pretty completely specified, such as
Tuesday, April 12, 1952 AD or 3:30:42pm PST.
"

Then I check SimpleDateFormat in the book, it DOES NOT say anything about "parse"! The only thing it gives is:
public java.util.Date parse(String text, ParsePosition pos);

Come on, what is pos? I have to look for it in JavaDoc again.
It says "
Parses text from a string to produce a Date.
The method attempts to parse text starting at the index given by pos. If parsing succeeds, then the index of pos is updated to the index after the last character used (parsing does not necessarily use all characters up to the end of the string), and the parsed date is returned. The updated pos can be used to indicate the starting point for the next call to this method. If an error occurs, then the index of pos is not changed, the error index of pos is set to the index of the character where the error occurred, and null is returned.
"

What a shame to O'Reilly. I really hope in the next version they can:
1. Add some description to the most useful member functions in each class.
2. Add a simple example for each Class or add cross reference.
3. Add an idiom code sample for each class
4. Remove 'not that useful' member functions, so many classes have "clone, equals, tostring, hashcode" in it, do you really want to list them??
Part I is great, Part II is not - Review written on June 30, 2005
* * * *
Rating: 4 out of 5
16 customers found this review helpful, 1 did not.

I've owned every edition since the first and I continue to recommend it. Part I is a great introduction to Java for novices. It is also great for experienced Java programmers to learn the new language features.

My only criticism is that over the years this "in a nutshell" book has expanded to the fill the size of a coconut. Starting with the 4th Edition, I began to recommend that novice Java programmers just read Part I. The author should drop Part II from subsequent editions as printing the Java APIs is a waste of paper and shelf space.
Aweomse Intro/Reference - Review written on June 09, 2005
* * * * *
Rating: 5 out of 5
1 customer found this review helpful.

One has to wonder about an 'In a Nutshell' book that goes over 1000 pages, but that aside, this is one of the best Java books out there, no matter what your goals are.

New to Java? The beginning chapters outline how to use Java easily and in pretty good detail.

Want to become an expert in Java? Well over half the book is a reference to a bunch of the Java APIs, which will give you exposure to a lot of what Java can do.

Need a handy reference and don't feel like looking through the Javadocs? This book was designed with you in mind, giving you a handy reference section of about 700 pages to help you out.

Although I wouldn't recommend this book to someone with NO programming background, for anyone else this book is perfect.
A COMPLETE reference guide - Review written on June 02, 2005
* * * *
Rating: 4 out of 5
2 customers found this review helpful.

Java in a Nutshell, Fifth Edition
By David Flanagan
Fifth Edition March 2005
Series: In a Nutshell
ISBN: 0-596-00773-6
1264 pages, $44.95 US
http://www.oreilly.com/catalog/javanut5/

This has to be one of the thickest "Quick Reference" books I've ever seen. The 5th Edition to Java in a Nutshell was updated to cover Java 5.0. The cover of this book under Java in a Nutshell reads "A Desktop Quick Reference". I understand how this book is more of a reference guide to Java rather than a run through of what Java is about, but the thickness of this book doesn't agree too well with being quick reference. There is a lot of this book to dig through and almost would benefit from a CD-rom version for the search functions.

If you need a complete reference book to Java including Java 5.0, this book is for you. This book starts with an intro to Java and goes right into the syntax of Java from the ground up and Java programs from the Top Down. Chapter 4 covering Java 5.0 Language features is a nice addition to this 5th edition book. Chapter 5 covers the Java platform and then Chapter 6 goes into the security of Java including security risks. The different Java Development Tools are covered in Chapter 8 which is where a lot of beginners will probably want to glance over.

The second part of this book is entirely a API Quick Reference, and here is where the book grows in thickness. I'm glad they added the first part of this part, "How to use this quick reference". Without this section, navigating between pages 385 through 1076 would be a bit more difficult when it comes to understanding how information is organized.

This massive book contains 2700 lines of cleanly commented code that demonstrates how common tasks can be accomplished. Demonstration code is always an added bonus in a reference book as it'll give you the chance to see how certain things are put together rather than just reading about them individually. It'd be nice if this book was a bit lighter but atleast it covers everything it needs to cover and then some, along with being fairly easy to navigate. This book combined with a few Step-by-step Java books would make a completely Java CD Bookshelf and would make navigation of the information a lot easier.

I'd recommend this book to anyone looking for Java information but this is definitely not the book for beginners to learn Java from.

Mitch Randall
Pensacola Linux User's Group
There are some things you can count on in life... - Review written on April 11, 2005
* * * * *
Rating: 5 out of 5
8 customers found this review helpful, 1 did not.

... and a solid "Java in a Nutshell" is one of them. What can I say? I started with v1.1 and have bought every version up to v5.0.
I can relate to the main complaint of the other reviews: the book's size. I agree that the second half of the book parrots the JavaDoc, but it is somewhat different and helpful, especially if you've grown used to looking through it to find stuff.
I don't know what the answer is. Hey, I have an idea: blame Sun, not David. At the risk of getting flamed and/or flack, I have oftentimes thought that the Java language is just growing out of control. Some might argue that we need all of this stuff. Perhaps that is true, but is it really worth the hit that each and every developer takes every time they try to find something is this vast ocean of APIs?
Ahh, remember the good old days of K&R "C"?
good sign of Java's vitality - Review written on April 08, 2005
* * * *
Rating: 4 out of 5
4 customers found this review helpful, 2 did not.

Recently, Sun gave us a significant upgrade to Java - the release of Java 5. A slew of the inevitable bug fixes. But also key new features, as explained here by Flanagan in the 5th edition of his long running reference.

Some new abilities lead to notational simplification, like autoboxing. So if k is an Integer, you can now say "k=5" instead of the clumsier "k=new Integer(5)". With a similar inverse process if q is an int, of being able to write "q=k" rather than "q=k.intValue()". Though of course the older forms are still valid, for backward compatibility.

Hey, varargs are now allowed! Much to the pleasure of some of you who came from C programming and used this nice feature. Ever since Java came out, there has been a continual, albeit quiet, push for varargs. Finally!

By now, experienced Java programmers may be familiar with earlier versions of the book. There may be mild astonishment at the sheer heft of this edition. Thanks to its popularity, Java has bulked up in the number and scope of its classes. The book is a reassuring sign of Java's vitality.
Still a must-have classic, but it's getting rather large... - Review written on April 05, 2005
* * * *
Rating: 4 out of 5
42 customers found this review helpful, 3 did not.

Here's a classic that just keeps on keep up with the state of the language... Java In A Nutshell (5th Edition) by David Flanagan (O'Reilly). But it's definitely getting pretty large...

Rather than list the chapters like I usually do, I'll forego that this time in that I'll probably overrun the Amazon word limit. Suffice it to say that if it's a core part of the Java language as of version 5.0, it's probably in here...

The good stuff... Flanagan has once again done an outstanding job in providing a succinct reference manual that covers the latest version of the Java language. He's added a new chapter to cover Java 5.0 features such as generic types, enumerated types, and annotations. There is also coverage of some new features in chapter 2, such as autoboxing and the new for/in statement. This coverage method (most of the new stuff in one area) means that readers who are upgrading their copy can easily flag the new material they need to read. And rather than keep a lot of older material floating around, he's also eliminated some language features that are either deprecated or are not widely used. Granted, if *you* are one of the few using it, that's not good, but you have to draw a line somewhere. Other than that, it's the same solid, no-fluff coverage of the Java language in the first 400 pages that you've come to expect in this Nutshell volume. The reminder of the 1200+ pages covers Java API documentation, which is useful if you're looking for a particular method or property you're not familiar with.

The bad part is probably the page count... Although the print is small and the information is packed tightly, 1200 pages still makes for a pretty thick book. Some will make the argument that you can get the last 800 pages (the API documentation) on-line, which is true. I tend to prefer having pages I can flip through without having to do a lot of hyperlinking. Plus you can jot down notes or flag certain parts you reference quite often. I'm almost of the opinion that perhaps it's now time to split the book into Java In A Nutshell - volumes 1 and 2. Put the API info in a second volume and make it easier to work with...

I still think this is a "must have" book for any Java programmer... It just may be time to take a hard look at the packaging for the 6th edition.
What size nutshell?! - Review written on April 04, 2005
* * * *
Rating: 4 out of 5
2 customers found this review helpful, 5 did not.

I agree with the review above. It's a great book but the part II API Quick Reference is too much to be included. If they were split and available for purchase separately, you would have a much better product. That said, Part I is really good!
A bit much... - Review written on March 30, 2005
* * *
Rating: 3 out of 5
91 customers found this review helpful, 3 did not.

As far as the information inside the book goes, it's a great book that describes the basics of Java in a simple, here's what you need to know format. It describes everything you need to know about Java syntax, objects, etc, etc, etc. The big reason to get this is for the Java 5.0 info, which is scattered throughout Chapter 2. There is also Chapter 4, which goes into more detail on some of the more interesting features of Java 5.0.

However, the bulk of the 1200+ pages are essentially the javadoc, with some additional notes. In thumbing around and looking at random class descriptions, I didn't see anything I couldn't get from the javadoc. This is obviously a personal preference - if you like the hardcopy, it might work for you. It just seems like a waste to me.

I would have been much happier with the first 400 pages and a note on page 401 that said "buy another book if you need the apis" or "go read the javadoc". A 400 page Nutshell book I can throw in the backpack, thumb through, and carry around. A 1200 page Nutshell (like Java 5.0 for that matter) seems to be suffering from a bit of unnecessary bloat.