Sponsored
Buy New
-61% $13.89
$3.99 delivery Saturday, May 30
Ships from: GreenIceMedia
Sold by: GreenIceMedia
$13.89 with 61 percent savings
List Price: $35.47 Image
$3.99 delivery Saturday, May 30. Details
Only 4 left in stock - order soon.
$$13.89 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$13.89
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Returns
30-day refund/replacement
30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
Shipping fee
May apply, not eligible for free return. See details
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$20.79 with 41 percent savings
List Price: $35.47 Image
FREE delivery Tuesday, May 26 on orders shipped by Amazon over $35
Or Prime members get FREE delivery Friday, May 22. Order within 8 hrs 45 mins. Join Prime
Only 1 left in stock - order soon.
$$13.89 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$13.89
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon
Amazon
Ships from
Amazon
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
FREE return
At least one free return option available.
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$6.07
Fast Free Shipping – Very Good condition book with a firm cover and clean pages. Shows normal use and some light wear or limited notes markings. A solid, nice copy to enjoy. Fast Free Shipping – Very Good condition book with a firm cover and clean pages. Shows normal use and some light wear or limited notes markings. A solid, nice copy to enjoy. See less
FREE delivery May 28 - June 1. Details
Or fastest delivery May 27 - 29. Details
Only 1 left in stock - order soon.
$$13.89 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$13.89
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by GREENWORLD BOOKS.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Effective Java (2nd Edition)

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Effective Java (2nd Edition) 2nd Edition

4.7 out of 5 stars (675)

{"desktop_buybox_group_1":[{"displayPrice":"$13.89","priceAmount":13.89,"currencySymbol":"$","integerValue":"13","decimalSeparator":".","fractionalValue":"89","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"%2BR4rSekPsNZGbjxyNbD3d7pER5F%2Bi4a0m%2BqwbjfjKILLfhfRnNn%2BT60waQGNH2DQgICx%2BEy0NDwiiw9a5tsQ4cgx4%2FLhOz0zoCL0mu6FQHn5DMeh2pG%2Bz%2BzRGzaSpSiizxObwNcZwcHDs7UNzwF8j1Z3N1wHV3m5othdMZacrWJj7hgZF54E%2FjDPOIOKl2lj","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$20.79","priceAmount":20.79,"currencySymbol":"$","integerValue":"20","decimalSeparator":".","fractionalValue":"79","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"%2BR4rSekPsNZGbjxyNbD3d7pER5F%2Bi4a0LaRJwDhQjIVZbxmLbUotrJNDCqPZeFeJIqjcQ1oEt0OsNHmmqAhk6v0pnnxlRaFnITaplzzW%2BuZumtC%2Fh18G7AC0kmicWlJbETShviTL3bUye21TJCsgI%2FL61Alk2q7Jl55%2F5nAFTG8JAlKUGB2UeVp1zxFge6vI","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":1}, {"displayPrice":"$6.07","priceAmount":6.07,"currencySymbol":"$","integerValue":"6","decimalSeparator":".","fractionalValue":"07","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"%2BR4rSekPsNZGbjxyNbD3d7pER5F%2Bi4a02TXhr8er0P6wX242IwO%2FnI1DC2Wvkq6GMa6RiTveVlg5ALU7vahNARagiEZ%2F0DoiA0Hvq5u%2B%2FPSVhQ4h45nQcGOuKY35SkEL6WC5e3uSW7O%2BaQS8NmgvmACbvm6bu7RH9mkZ0dW7f2hTelPv2d3NwBDB%2BXKqT3G6","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":2}]}

Purchase options and add-ons

Are you looking for a deeper understanding of the Java™ programming language so that you can write code that is clearer, more correct, more robust, and more reusable? Look no further! Effective Java™, Second Edition, brings together seventy-eight indispensable programmer’s rules of thumb: working, best-practice solutions for the programming challenges you encounter every day. This highly anticipated new edition of the classic, Jolt Award-winning work has been thoroughly updated to cover Java SE 5 and Java SE 6 features introduced since the first edition. Bloch explores new design patterns and language idioms, showing you how to make the most of features ranging from generics to enums, annotations to autoboxing. Each chapter in the book consists of several “items” presented in the form of a short, standalone essay that provides specific advice, insight into Java platform subtleties, and outstanding code examples. The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why. Highlights include: New coverage of generics, enums, annotations, autoboxing, the for-each loop, varargs, concurrency utilities, and much more Updated techniques and best practices on classic topics, including objects, classes, libraries, methods, and serialization How to avoid the traps and pitfalls of commonly misunderstood subtleties of the language Focus on the language and its most fundamental libraries: java.lang, java.util, and, to a lesser extent, java.util.concurrent and java.io Simply put, Effective Java™, Second Edition, presents the most practical, authoritative guidelines available for writing efficient, well-designed programs.

There is a newer edition of this item:

Effective Java
$43.86
(1,605)
In Stock
Sponsored

Customers also bought or read

Loading...

Editorial Reviews

Review

Raves for the First Edition!

“I sure wish I had this book ten years ago. Some might think that I don’t need any Java books, but I need this one.”

—James Gosling, fellow and vice president, Sun Microsystems, Inc.

“An excellent book, crammed with good advice on using the Java programming language and object-oriented programming in general.”

—Gilad Bracha, coauthor of The Java™ Language Specification, Third Edition

“10/10—anyone aspiring to write good Java code that others will appreciate reading and maintaining should be required to own a copy of this book. This is one of those rare books where the information won’t become obsolete with subsequent releases of the JDK library.”
—Peter Tran, bartender, JavaRanch.com

“The best Java book yet written.... Really great; very readable and eminently useful. I can’t say enough good things about this book. At JavaOne 2001, James Gosling said, ‘Go buy this book!’ I’m glad I did, and I couldn’t agree more.”
—Keith Edwards, senior member of research staff, Computer Science Lab at the Palo Alto Research Center (PARC), and author of
Core JINI (Prentice Hall, 2000)

“This is a truly excellent book done by the guy who designed several of the better recent Java platform APIs (including the Collections API).”
—James Clark, technical lead of the XML Working Group during the creation of the XML 1.0 Recommendation, editor of the XPath and XSLT Recommendations

“Great content. Analogous to Scott Meyers’ classic Effective C++. If you know the basics of Java, this has to be your next book.”
—Gary K. Evans, OO mentor and consultant, Evanetics, Inc

“Josh Bloch gives great insight into best practices that really can only be discovered after years of study and experience.”
—Mark Mascolino, software engineer

“This is a superb book. It clearly covers many of the language/platform subtleties and trickery you need to learn to become a real Java master.”
—Victor Wiewiorowski, vice president development and code quality manager, ValueCommerce Co., Tokyo, Japan

“I like books that under-promise in their titles and over-deliver in their contents. This book has 57 items of programming advice that are well chosen. Each item reveals a clear, deep grasp of the language. Each one illustrates in simple, practical terms the limits of programming on intuition alone, or taking the most direct path to a solution without fully understanding what the language offers.”

—Michael Ernest, Inkling Research, Inc.

“I don’t find many programming books that make me want to read every page—this is one of them.”
—Matt Tucker, chief technical officer, Jive Software

“Great how-to resource for the experienced developer.”
—John Zukowski, author of numerous Java technology books

“I picked this book up two weeks ago and can safely say I learned more about the Java language in three days of reading than I did in three months of study! An excellent book and a welcome addition to my Java library.”
—Jane Griscti, I/T advisory specialist

Video Game Review by 1UP.com

1234

Product details

  • Publisher ‏ : ‎ Addison-Wesley
  • Publication date ‏ : ‎ May 28, 2008
  • Edition ‏ : ‎ 2nd
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 346 pages
  • ISBN-10 ‏ : ‎ 0321356683
  • ISBN-13 ‏ : ‎ 978-0321356680
  • Item Weight ‏ : ‎ 1.43 pounds
  • Dimensions ‏ : ‎ 8.5 x 0.83 x 11 inches
  • Best Sellers Rank: #1,354,584 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.7 out of 5 stars (675)

About the author

Follow authors to get new release updates, plus improved recommendations.
Joshua Bloch
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Joshua J. Bloch (born August 28, 1961) is a software engineer and a technology author, formerly employed at Sun Microsystems and Google. He led the design and implementation of numerous Java platform features, including the Java Collections Framework, the java.math package, and the assert mechanism. He is the author of the programming guide Effective Java (2001), which won the 2001 Jolt Award, and is a co-author of two other Java books, Java Puzzlers (2005) and Java Concurrency In Practice (2006).

Bloch holds a B.S. in computer science from Columbia University and a Ph.D. in computer science from Carnegie Mellon University. His 1990 thesis was titled A Practical Approach to Replication of Abstract Data Objects and was nominated for the ACM Distinguished Doctoral Dissertation Award.

Bloch has worked as a Senior Systems Designer at Transarc, and later as a Distinguished Engineer at Sun Microsystems. In June 2004 he left Sun and became Chief Java Architect at Google. On August 3, 2012, Bloch announced that he would be leaving Google.

In December 2004, Java Developer's Journal included Bloch in its list of the "Top 40 Software People in the World".

Bloch has proposed the extension of the Java programming language with two features: Concise Instance Creation Expressions (CICE) (coproposed with Bob Lee and Doug Lea) and Automatic Resource Management (ARM) blocks. The combination of CICE and ARM formed one of the three early proposals for adding support for closures to Java. ARM blocks were added to the language in JDK7.

Bloch is currently a faculty member of the Institute for Software Research at Carnegie Mellon University, where he holds the title "Professor of the Practice". In addition to his research, Bloch teaches coursework in Software Engineering.

Bio from Wikipedia, the free encyclopedia.

Sponsored

Customer reviews

4.7 out of 5 stars
675 global ratings
Sponsored

Customers say

Customers find this Java book valuable, with one noting it covers advanced language topics, and many praising its practical advice for seasoned developers. The writing style receives positive feedback, with one customer highlighting the 78 ways to write idiomatic Java code, and customers appreciate its concise language and readability. While the book is suitable for beginners, some customers note it's not appropriate for complete novices. Customers disagree on the page size.
AI Generated from the text of customer reviews

Select to learn more

109 customers mention content, 103 positive, 6 negative
Customers praise the content of the book, describing it as fantastic and excellent, with one customer noting it is ideal for constructing a programming textbook.
Great book, essential for learning java. I used this before the 3rd edition had come out. Now that it's out, definitely get that one instead.Read more
This is an awesome book, I read it recently and I'm going to purchase the 3rd edition of this book too....Read more
Good book, still relevant 7 years later.Read more
Very good book covering topics of core importance but much beyond the basics. Format could be a little more clear....Read more
67 customers mention practical, 67 positive, 0 negative
Customers find the book highly practical, particularly for seasoned Java developers, as it provides helpful approaches to programming techniques and serves as a great reference for best practices.
...so I do not forget some of the topics so ably covered with great examplesRead more
I think of this book as a practical Java mentor companion. Simply put, this is a must-read book for everyone starting to work with Java....Read more
Joshua Bloch's Effective Java is the definitive work on Core Java Best Practices....Read more
One of the most important programming books I've read. Changed me.Read more
49 customers mention readability, 43 positive, 6 negative
Customers find the book highly readable and consider it a must-read for every Java developer, with one customer noting it's particularly essential for those working with managed memory languages.
This book covers many advanced topics and is a must read for every Java developer....Read more
...I found it to be very well written (easy to understand)...Read more
...The included code examples are a joy to read; they are clear, concise, and always illustrative....Read more
good for java devs to read, might make you think about things differently. I wish they'd update it though as it is quite old now.Read more
17 customers mention writing style, 16 positive, 1 negative
Customers appreciate the writing style of the book, noting that each section is well composed and written in the Scott Myers style. One customer mentions it provides 78 ways to write idiomatic Java code.
...guaranteed. The book is well written, explained using solid engineering concepts which you can pass on to your teammates,...Read more
...This includes but is not limited to the scope, depth, and writing style of this piece of work ....Read more
...The book is written in a clear and concise language and each problem is exceptionally well reasoned....Read more
...I found it to be very well written (easy to understand) with clear examples, and I love the whole "item" approach; the book consists of 78 items...Read more
10 customers mention design, 9 positive, 1 negative
Customers appreciate the design aspects of the book, with one customer noting how it helps improve Java design and code, while another mentions it provides valuable Java and object-oriented design wisdom.
It's a great book with great ideas.Read more
Fantastic Java book, each section is well written and contains useful design and coding pointers that can help improve your Java programs....Read more
...writing Java code for years, this book will get you to rethink your design decisions and bring your skills up to the next level.Read more
...Joshua Bloch gives insights into collections, design and gotchas, which is enough for a java users to understand what no to do....Read more
8 customers mention conciseness, 8 positive, 0 negative
Customers appreciate the book's concise language, with one customer noting its language-agnostic approach.
...Included code samples are clear, concise and contain comments that highlight the relevant parts of the code....Read more
Its more of a book on java english terms and ten commandments. Forget about get getting up and fast coding on this book...Read more
Since I read this book, my Java programs are neater, more concise, easier to debug and often more efficient because of the practices it teaches....Read more
...implementation details, it has a lot of great teachings that are language agnostic....Read more
11 customers mention suitable for beginners, 4 positive, 7 negative
Customers have mixed opinions about the book's suitability for beginners, with some finding it very simple while others note it is not suitable for complete beginners.
...This is not a book for beginners. If you are just starting to learn programming, this will only leave your mind in a very confused state. -...Read more
...His style is lucid and direct with great examples....Read more
...This book is not for beginners. Read Head First Java or some basic books before reading this.Read more
...This book is not for complete beginners: one should have a solid foundation in Java or at least in another object-oriented language.Read more
7 customers mention page size, 3 positive, 4 negative
Customers have mixed opinions about the page size of the book, with some noting that it is different from their coworkers' copies, while one customer mentions that the concepts are presented in bite-sized items.
...Short and simple, the book is huge!!Read more
...Also, the font is large enough that I never had an eye strain issue like I've had with some other technical books that use a smaller font....Read more
...The cover is all jpeg artifact-y, and it's a different size than my coworker's copy of the same book. what the heck? Get it together, amazon.Read more
...Very simple, easy to follow. This small item structure makes it easier to read in the daily commute....Read more

Top reviews from the United States

  • 5 out of 5 stars
    The best general Java book I've read so far
    Reviewed in the United States on September 5, 2008
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This book seems to be one of the most critically acclaimed Java titles. What could I possibly add to what has been said? The acclaim is fully deserved. I had the feeling that I already learned something new and important as soon as I reached page twenty. This is something that I cannot say of very many books. Effective Java manages to be extremely useful and simultaneously extremely easy to read. However, "easy" doesn't mean simple in this case, since many of the discussed problems are subtly complex. Some are so complex, in fact, that Java beginners might not fully understand or appreciate them. So, it's probably not a book for beginners. On the other hand, the book is neither esoteric. The 78 items are general Java programming issues which one is likely to encounter in everyday work at some point, regardless of any specific domain. The book is written in a clear and concise language and each problem is exceptionally well reasoned. The author has a very deep understanding of the Java language, which is rather apparent and no surprise, since Joshua Bloch is one of the architects of the Java platform. Incidentally, this also means that the problems are discussed from the perspective of an API designer rather than from the perspective of an application programmer. This is useful, because it is primarily concerned with creating robust and high quality interfaces. Architects, designers, and application programmers benefit likewise from this. The items discussed in this book can probably be described as design and implementation level rationales. They are grouped by Java categories, such as generics, enums, annotations, exceptions, serialisation, as well as by more general concepts, such as object creation, classes and interfaces, methods and concurrency. Many of the individual topics are related; therefore the author makes ample use of cross references, which is helpful for reference use. The included code examples are a joy to read; they are clear, concise, and always illustrative. While discussing the intricacies of the above named topics, Joshua Bloch casually introduces the reader to a good number of commonly used design patterns, many of which are illustrated with code examples. However, design patterns are not themselves formally discussed. The book equips Java programmers with an arsenal of relevant best practices, from comparatively simple things such as creating objects, implementing "equals()" and "hashCode()" methods to more advanced topics, such as concurrency, mutability, and thread safety. In doing so, Joshua Bloch points out quite a few quirks and peculiarities of the Java language, and he does not only point them out, but explains their practical consequences in detail. Thus, the book has great didactic value, as the reader will end up with a higher level of familiarity with the language. Reading this book is time well invested for any Java programmer.

    3 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    yourJavaLevel++
    Reviewed in the United States on December 23, 2013
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This book is one of the highest rated Java books in existence. The main reason that I chose to read this book is because one of my colleagues highly recommended it. Needless to say, I have to jump on the bandwagon and join in with all of the hoopla and praise that’s associated with this book. It is simply fantastic on several latitudes. This includes but is not limited to the scope, depth, and writing style of this piece of work . The concepts are presented in bite-sized items which often cross reference one another. These chunks are then grouped into chapters for broader topics such as “Generics”, “Exceptions” and “Enums and Annotations” just to name a few. All items are presented in a practical manner that will help real developers on the job immediately. You’ll go to work the next day and be able to quickly identify code that should be improved by applying the principles in this book. Included code samples are clear, concise and contain comments that highlight the relevant parts of the code. Every item is gold and the constant supply will have you reading it from cover to cover with little interruption.

    It should be of no surprise that this book is not for beginners. In fact, I would argue that it’s targeted to advanced Java developers looking to obtain “Expert” status. (“Guru” status come after one reads both the Java and JVM specifications in their entirety and grow a worthy beard). If you’re a curious Java developer looking for some of the more interesting aspects of the language or a Java veteran determined to take your understanding to the next level, Effective Java is the book you need to have.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    A student's perspective: New insights on every page
    Reviewed in the United States on February 28, 2009
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I am thoroughly enjoying this book and learning a lot in the process. The author is responsible for many of the successful APIs in the Java language, such as the Collections framework, so he certainly knows what he is talking about.

    I am still a student but I can relate to some of the things he talks about, and see where I have deviated from his suggestions in the past. The author is clear to point out why these things are problems in terms of either code reuse, extensibility, type safety, or some other aspect, so even though it wasn't necessarily an issue in the context of a school project, in the real world it certainly might be.

    The author borrows the format from Scott Meyer's Effective C++ series of books, and it works very well in this context. While the chapters are logically organized, they are set up in such a way that you do not need to read from start to finish; you can jump around and read the interesting bits at will, and often items in one section of the book refer to later (or earlier) items.

    Finally, I appreciate that the book explains some of the less well known or understood features of recent versions of Java. For instance, I had never heard of the annotation feature added, but he goes on to show a great example of how you can use annotations to build a simple test framework for a class.

    Even if you are not yet a software professional, you owe it to yourself to get a jump start by reading this book.

    6 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Very deep, very heavy on the mind and very good
    Reviewed in the United States on March 29, 2013
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I'll start this review telling you what this book is not:

    - This is not a cookbook. You will not find template solutions to regular programming problems here.

    - This is not a "fun" book. This is not like the Head First books where they have lots of funny stuff to keep you entertained.

    - This is not a book for beginners. If you are just starting to learn programming, this will only leave your mind in a very confused state.

    - This is not "just a Java book". Although most of the topics described in this book are tightly related to Java's mechanics and implementation details, it has a lot of great teachings that are language agnostic.

    That being said, this book is a very deep analysis on many diverse topics, most of them centered on Java's mechanics, language features and most prominent flaws. You can expect, for example, lost of pages explaining how to correctly implement a serializable class or how to clone an object correctly. But you will not only get answers here. Most topics include a very throughout explanation on the logic behind the solutions and the potential pitfalls and risks of failing to follow the suggestions described and even counter-intuitive problems derived from design flaws in the Java language.

    I will admit that many of the topics of the books have no practical use unless you have to implement a low level solution from scratch or you are working on a very important project where a design flaw might cause catastrophic failure. Still, I guarantee that anyone who reads this book will find something useful.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    A must have for every professional
    Reviewed in the United States on November 15, 2011
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I can honestly say that this book has improved my programming skill tremendously. It is divided to short items, each one packs a powerful wisdom. My boss at the startup I was working at gave me his copy and I read just one item each morning before starting my day, now almost 3 years later I bought my own copy and I'm reading it again. it's amazing that I can still learn in the 2nd read, now that I have more experience.

    Josh Bloch is just amazing, there are a lot of Java books out there, except this one was written by the same guy who designed and wrote most of the standard library.

    If you apply Bloch's lessons, your code will be cleaner, safer, more readable, efficient and will lead to fewer bugs. guaranteed.

    The book is well written, explained using solid engineering concepts which you can pass on to your teammates,

    and covers a wide range of topics which anyone can benefit from.

    I recommended this book to all of my engineer friends, and they all have it now and love it.

    A must have in every Java developer's belt.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 4 out of 5 stars
    Great tips. For Java devs who want to be better Java devs
    Reviewed in the United States on January 2, 2015
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Very good book covering topics of core importance but much beyond the basics. Format could be a little more clear. It kinda reads like a story not a reference, however the information is very good. This is not the type of book that fills pages with reprints of javadocs or elaborates upon basic concepts with dumb examples exhaustively typed out. It is suited to the person who can already develop code at a professional level looking to become more effective with the Java language. These are the types of things developers share with each other during code reviews. I found myself incorporating ideas from the book into my coding style almost immediately. The information is useful and worth knowing. Great for anyone mid-level and up.

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    The Correct Way To Write Java
    Reviewed in the United States on May 17, 2016
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This is the book I wish I had when I was working as a Java programmer. Bloch gives 78 ways to write idiomatic Java code, and the book is written in the Scott Myers style where each item can stand on its own.

    I liked that the author made definitive statements about which style is best, and explains why. For example Item 16, "Favor composition over inheritance" describes how inheritance can violate encapsulation and why it leads to fragile software. First we are shown an example using inheritance that is broken, a way to rewrite it using composition, and followed by a concluding explanation.

    The author highlights key points in bold text; this was a helpful way to see the critical points being made. Many statements are well sourced as the References section in the back contains upwards of 40 books.

    I read some other reviews of this book which said they thought the author was too authoritative with his opinion. I actually found this to be the strong suit of the book, in that the author states his design preference, why it is best, shows examples, and the sources his information. He knows the material and the language very well. I have yet to read a better Java design book so far.

    10 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Must have for all Hard Core Java developers
    Reviewed in the United States on May 18, 2011
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Wish all books were like this - OR - rather - All programming languages had a book like this.

    This is not a basic / novice level book - but assumes that the reader has already used Java for a number of years.

    It is best to read this book slowly absorbing the thoughts / concepts and what the author is conveying. Some of the things could be subtle but - if they are tried out - after reading each article it makes more sense.

    The author had written a lot of the core Java libraries while at SUN - and you can see his name in the source files in the JDK. The author has complete clear and crisp understanding of the concepts and lucidly explains the points - with clear small and right examples.

    I used to read this book - 1 article a day and then try out the concepts conveyed in the article.

    I had read the 1st edition of the book long time back - and it clearly - imprinted in my mind - why hash() function needs to be written and the deficiencies of a bad hash function.

    This new edition includes all the new features of the language as incorporated in Java 1.5 other than the concurrency related classes.

    Only deficiency of the book, I do wish - it had some more articles about the Concurrency related libraries that were introduced in Java 1.5.

    Anyone who would like to know more about the internals of Java - should purchase this book and read it

    2 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

    Translated by Amazon
    See original
  • 5 out of 5 stars
    La Bibbia di ogni sviluppatore Java
    Reviewed in Italy on June 2, 2012
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Una raccolta di item ben organizzata, precisa e ben scritta riguardante un buon numero di problemi che lo sviluppatore Java si ritrova ad affrontare quotidianamente e le relative "best practices" per risolverli al meglio, scritta da uno dei maggiori Guru del linguaggio al mondo.

    Suggerimenti a tutto campo, dall'organizzazione di classi e interfacce, pattern, generics, concorrenza e serializzazione: leggendo questo libro si impara molto più di quello che i tutorial Sun o un qualsiasi corso universitario possono insegnare su Java. Insomma: un must-have per tutti coloro che vogliono approfondire l'uso di questo stupendo linguaggio, anche per quelli che credono di sapere già tutto!

    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from Italian by Amazon
    See original
  • 5 out of 5 stars
    Sehr guter, aber teilweise schwerer Stoff
    Reviewed in Germany on November 19, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Ich spreche für die 2. Edition. Berechtigterweise erscheint das Buch stets in "Java books you must read"-Listen. Es kennt die grundlegenden Neuerungen von Java 5. (Erst die 3. Edition kennt die weitreichenden Spracherweiterungen, die mit Java 8 kamen)

    Das Buch behandelt eigentlich nur die Grundlagen der Sprache und nebenbei einige Patterns, geht dabei aber mehr in die Tiefe als man das von normalen Lehrbüchern gewohnt ist. Daher ist das Buch nichts für Anfänger oder Leute mit nur etwas Java-Erfahrung. Die Texte verwenden teils anspruchsvolles Englisch. Oft schafft es der Autor mit minimalen Code-Beispielen maximale Verwirrung beim Leser zu stiften. Zum Teil musste ich mich (z.B. Kapitel zu Concurrency und Serialization) durchquälen.

    Fazit: Im Buch stehen viele nützliche, empfehlenswerte Sachen, die allerdings durch wiederholtes Lesen und eventuell zusätzliches Nachprogrammieren erarbeitet werden müssen.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from German by Amazon
    See original
  • 5 out of 5 stars
    Great book!
    Reviewed in the United Kingdom on December 1, 2012
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This book has to be one of the best Java books written, the author explains aspects in such great detail that it changes the way you think about programming in Java. Though I would not recommend this book to someone who is new to Java or new to Programming, simply because the book is written assuming you have somewhat good knowledge of Java and understand enough Java programming that you can create programs yourself and I would also not recommend this book to someone looking for information on specific aspects of Java, instead this book simply increases your current knowledge by explaining how things work and how to improve the way you used them.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Perfecto para aprender las "frases hechas" del lenguaje Java
    Reviewed in Spain on February 14, 2013
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    El libro trata temas avanzados de Java. No es un libro para aprender la sintaxis o gramática de Java, si no el equivalente a sus frases hechas. Se compone de "items" que abordan diferentes situaciones donde ya existen soluciones bien establecidas. Cada solución se presenta con muchos ejemplos de código.

    El libro está bien escrito y bien estructuado. Es de gran utilidad para los que quieren pasar de escribir código Java correcto a código Java eficiente.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from Spanish by Amazon
    See original
  • 5 out of 5 stars
    Excellent
    Reviewed in France on November 19, 2010
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Ce livre s'adresse aux personnes maitrisant les bases de JAVA (une connaissance du langage, des API de base et des patterns les plus courants, est indispensable). Il donne beaucoup d'astuces permettant de rendre son code plus lisible, plus réutilisable, et surtout plus performant.

    En bref, ce livre est un condensé de bonne pratique, dont chaque développeur JAVA intermédiaire ou avancé devrait être conscient.

    Je ne suis vraiment pas déçu de mon achat et je le recommande donc fortement.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from French by Amazon
    See original