Java in a Nutshell (In a Nutshell (O'Reilly)) and over one million other books are available for Amazon Kindle. Learn more

Vous voulez voir cette page en français ? Cliquez ici.


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
More Buying Choices
Have one to sell? Sell yours here
Start reading Java in a Nutshell (In a Nutshell (O'Reilly)) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Java in a Nutshell [Paperback]

David Flanagan

List Price: CDN$ 62.95
Price: CDN$ 29.78 & FREE Shipping. Details
You Save: CDN$ 33.17 (53%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 1 left in stock (more on the way).
Ships from and sold by Amazon.ca. Gift-wrap available.
Want it delivered Tuesday, April 22? Choose One-Day Shipping at checkout.

Formats

Amazon Price New from Used from
Kindle Edition CDN $19.79  
Paperback CDN $29.78  

Book Description

March 25 2005 0596007736 978-0596007737 5

With more than 700,000 copies sold to date, Java in a Nutshell from O'Reilly is clearly the favorite resource amongst the legion of developers and programmers using Java technology. And now, with the release of the 5.0 version of Java, O'Reilly has given the book that defined the "in a Nutshell" category another impressive tune-up.

In this latest revision, readers will find Java in a Nutshell, 5th Edition, does more than just cover the extensive changes implicit in 5.0, the newest version of Java. It's undergone a complete makeover--in scope, size, and type of coverage--in order to more closely meet the needs of the modern Java programmer.

To wit, Java in a Nutshell, 5th Edition now places less emphasis on coming to Java from C and C++, and adds more discussion on tools and frameworks. It also offers new code examples to illustrate the working of APIs, and, of course, extensive coverage of Java 5.0. But faithful readers take comfort: it still hasn't lost any of its core elements that made it such a classic to begin with.

This handy reference gets right to the heart of the program with an accelerated introduction to the Java programming language and its key APIs--ideal for developers wishing to start writing code right away. And, as was the case in previous editions, Java in a Nutshell, 5th Edition is once again chock-full of poignant tips, techniques, examples, and practical advice. For as long as Java has existed, Java in a Nutshell has helped developers maximize the capabilities of the program's newest versions. And this latest edition is no different.


Customers Who Bought This Item Also Bought


Product Details


Product Description

About the Author

David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and children in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia. David has a blog at www.davidflanagan.com.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

There are no customer reviews yet on Amazon.ca
5 star
4 star
3 star
2 star
1 star
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.0 out of 5 stars  44 reviews
123 of 128 people found the following review helpful
3.0 out of 5 stars A bit much... March 29 2005
By Eric Wuehler - Published on Amazon.com
Format:Paperback
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.
52 of 55 people found the following review helpful
4.0 out of 5 stars Still a must-have classic, but it's getting rather large... April 4 2005
By Thomas Duff - Published on Amazon.com
Format:Paperback
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.
32 of 34 people found the following review helpful
4.0 out of 5 stars Part I is great, Part II is not June 30 2005
By David Wallace Croft - Published on Amazon.com
Format:Paperback
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.
27 of 31 people found the following review helpful
3.0 out of 5 stars Beware of the problems Aug. 9 2005
By Rocky - Published on Amazon.com
Format:Paperback
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??
10 of 11 people found the following review helpful
5.0 out of 5 stars There are some things you can count on in life... April 11 2005
By Larry - Published on Amazon.com
Format:Paperback
... 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"?
ARRAY(0xb43a4198)

Look for similar items by category


Feedback