Java in a Nutshell is a complete quick-reference guide to Java, the hot new programming language from Sun Microsystems. This comprehensive volume contains descriptions of all of the classes in the Java 1.0 API, with a definitive listing of all methods and variables. It also contains an accelerated introduction to Java for C and C++ programmers who want to learn the language fast . Java in a Nutshell introduces the Java programming language and contains many practical examples that show programmers how to write Java applications and applets. It is also an indispensable quick reference designed to wait faithfully by the side of every Java programmer's keyboard. It puts all the information Java programmers need right at their fingertips.Contents
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.
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.
“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.
I read the 8th edition but didnt see it as an option on Goodreads 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.
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.
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.
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.
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.
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.
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.
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.
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).