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.
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.
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
“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 Å·±¦ÓéÀÖ 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).