Å·±¦ÓéÀÖ

Jump to ratings and reviews
Rate this book

In a Nutshell

Java in a Nutshell

Rate this book
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 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.

1000 pages, Paperback

First published March 1, 1996

90 people are currently reading
752 people want to read

About the author

David Flanagan

34Ìýbooks32Ìýfollowers
David Flanagan is a computer programmer who has spent much of the last 20 years writing books about programming languages. He now works at Mozilla. David lives with his wife and children in the Pacific Northwest, between the cities of Seattle and Vancouver.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
362 (32%)
4 stars
355 (31%)
3 stars
290 (26%)
2 stars
83 (7%)
1 star
23 (2%)
Displaying 1 - 30 of 41 reviews
Profile Image for Gang Lei.
7 reviews14 followers
November 21, 2019
A good book to read for any coder. The ratio of time spent reading vs. writing is well over 10:1.
Profile Image for Rob.
AuthorÌý2 books431 followers
May 13, 2010
I know what you're thinking... "Why did you read the 4th edition in 2010? It only covers up to Java 1.4 - and it was published 8 years ago." My answer? "It was what my library had. And it covered what I needed to learn."

I suppose I should have known better, considering the O'Reilly "Nutshell" format. A couple hundred pages of "nutshell" overview material to digest some high-level concepts -- but you're wading through generic code samples. Then several hundred more pages of what is basically an index of core API stuff. And so almost all of it makes your eyes glaze over. It isn't bad or badly written; it's that the book has a target audience of which I am not really a member.

But that didn't stop me from getting out of it what I needed. (Which was just enough. The rest of those gaps I expect to fill with and
Profile Image for Jeanne Boyarsky.
AuthorÌý28 books75 followers
January 27, 2019
“Java in a Nutshell� has been updated for Java 11. It has everything you'd expect from the prior editions � syntax, examples and a great reference. New features from Java 8+ are highlighted. Some design patterns and tradeoffs are explained. A lot of concepts, like garbage collection, are covered as well.

I particularly liked the examples of common methods. There were a few in Collections that I could use and didn't realize existed. I also learned about a trick to with var and anonymous inner classes (that I hope not to see in real code). And of course, I like that big O notation was used in discussing collections. Many new features were covered well including method handles and modules.

A number of garbage collectors were discussed. I was surprised the g1 garbage collector didn't get more attention. It was well explained but didn't have a section header. I was also surprised to see an appendix that covered Nashorn since it a deprecated feature.

Overall, this is a great book and I recommend it for your Java learning/reference.
Profile Image for Sebastian Salamanca.
125 reviews
June 27, 2019
Very straightforward, lightweight. Concepts are very well explained.

It covers all importan aspects (at least the ones i need). I'm learning android

I took it from my local library but i liked it so much i decided to buy it. I want to keep it as a reference if my book shelf.

Very recommended
32 reviews
July 23, 2018
Had some good JAVA examples/exercises. Good for references.

Full review:
Profile Image for Mr. H.
41 reviews1 follower
July 18, 2023
A great overview and refresher of what happened in the Java world (7th edition with Java 17)
Profile Image for Nancy.
108 reviews3 followers
April 30, 2024
I read the 8th edition but didnt see it as an option on Å·±¦ÓéÀÖ and don't feel like manually creating an entry for it.

Great book, except the code examples did not include expected output. For example, it would have some System.out.println statements and say something like, you can see XYZ behavior from this, but you can't, unless you compile the code and run it yourself. I want to read the book standalone, not with a laptop open so I can type out and run these snippets. It would make a book trivially longer to include the output (usually only a few lines per example), but well worth it from a reader's perspective.
1 review1 follower
December 28, 2015
Thoughts starting at the beginning of the book:

I enjoyed this book. It goes into detail about most aspects of the language.

It anticipates questions that arise and clears them up later.

It is very verbose, so I started skipping parts after the first chapter.

It spends too much time on easy parts and glosses over complicated ones in some cases.

Not really "in a nutshell". There's a lot of information that I would call trivia.
Profile Image for Robert.
90 reviews1 follower
November 26, 2018
This book presents a survey of the Java technology as evolved up to java 8. At the point I am writing this Java 11 is already released. So as it happens with technology books, they get older by the day. The presentation of all new features is not deep, but it is comprehensive enough to get a good idea of what is out there and offers good pointers to get more info as necessary. A good time saver and good starting point for a refresher.
Profile Image for Burak Dede.
25 reviews5 followers
January 31, 2015
Nicely done. Author gives the balance between too much boring detail and skimming the surface. Book updated with newest featues like stream api, nashorn engine, diamond, method handles and all other java7/8 features. Not a great way to learn generics and collections topic especially with lambdas/streams, book did not do a great job on those topics.
Profile Image for Nick Black.
AuthorÌý2 books872 followers
March 23, 2008
It's hard to meaningfully evaluate a book about Java 1.1 in 2008. This book was certainly at my side throughout CS 1502 (Introduction to Programming), and I imagine newer editions are similarly strong. Then again, there's really no need for this book, given the great Sun documentation.
Profile Image for Jacob.
118 reviews25 followers
November 13, 2008
The first third of the book is a pleasantly terse primer on the language and some of the more common platform features, including a section on the features that were new to Java 5. The rest is an API reference which mainly serves to keep the book heavy and expensive.
Profile Image for Jack Repenning.
77 reviews3 followers
January 6, 2011
Like all the O'Reilly Nutshell books, this is clear, helpful, and human. It's not a take-you-by-the-hand tutorial, but it's tutorial enough if you've already mastered a language or two, and it'll be well worth keeping on your shelf after you're trained and effective.
Profile Image for Spencer.
146 reviews
April 26, 2011
The inclusion of the reference in the final section is idiotic. That reference is more easily found online and can be kept up to date easily.

I can find no problems with the rest. It does exactly what a nutshell book should do.
Profile Image for Knute Snortum.
23 reviews3 followers
Read
October 18, 2011
A good mid-level overview of the Java language. I haven't read the summaries on the core libraries yet, but that would be the only reason to read the reference area. The rest you can get, more updated, off the web.
56 reviews
February 23, 2017
Having a background in C and C++, I foolishly tried to learn Java with this book. It is pretty much unusable as a Java text. And the reference in the back is unnecessary even back then because the javadoc was available online.
Profile Image for Anton Antonov.
350 reviews48 followers
November 25, 2015
A must-read to keep up with the ever growing JDK. The latest (6th) edition addresses Java 7 and 8.
I enjoyed learning more about lambda expressions, NIO, Async I/O and Meta-programming (Classloading and Reflection).
Profile Image for Shawn.
AuthorÌý7 books48 followers
June 7, 2007
Pretty helpful, but it's been a long time since I programmed.
Profile Image for Y.
238 reviews10 followers
September 4, 2007
this was a text to my first java class, I don't think it's the best book for beginners... it also was not my style of book... but helpful.
Profile Image for Joe Martin.
363 reviews12 followers
reference
April 17, 2010
Java in a Nutshell (The Java Series) by David Flanagan (1997)
Profile Image for Fatma Hassan.
17 reviews28 followers
March 8, 2012
i learnt java from this book , fifth edition..covers main aspects cleverly , i strongly recommend it for beginners
Profile Image for Tom.
20 reviews
September 24, 2013
Good reference but I don't use it so much because most of the time it is more convenient to use the Java API reference on the net.
Profile Image for Michael Durrow.
2 reviews10 followers
July 31, 2014
O'reilly's best book for Java 101 and a great reference book to keep.
Profile Image for Shea.
75 reviews
May 27, 2015
Great introduction to Java for someone who is already familiar with programming concepts.
Displaying 1 - 30 of 41 reviews

Can't find what you're looking for?

Get help and learn more about the design.