Goodreads helps you keep track of books you want to read.
Start by marking “Effective Java” as Want to Read:
Effective Java
Enlarge cover
Rate this book
Clear rating
Open Preview

Effective Java

4.43  ·  Rating Details  ·  3,975 Ratings  ·  231 Reviews
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 togetherseventy-eight indispensable programmer s rules of thumb: working, best-practice solutions for the programming challenges you encounter eve ...more
Paperback, Second Edition, 346 pages
Published June 1st 2008 by Prentice Hall (first published June 5th 2001)
More Details... edit details

Friend Reviews

To see what your friends thought of this book, please sign up.

Reader Q&A

This book is not yet featured on Listopia. Add this book to your favorite list »

Community Reviews

(showing 1-30 of 3,000)
filter  |  sort: default (?)  |  Rating Details
Feb 12, 2012 Eric rated it it was amazing  ·  review of another edition
Shelves: java, techie
This is the single best book I have seen or read about Java to date. Bloch, who has been involved in the development of the latest versions of the Java language and specification, does not teach how to write Java code; he teaches how to write GOOD Java code.

This is a MUST READ for anyone who plans to write more than a little bit of Java code. But not only that, it is fairly easy to read and rather interesting.

I had a few second thoughts after writing the review above, so I thought I'd better add
Christian Brumm
Effective Java is THE BOOK you want to read first when you start writing Java code professionally (for a living).

In the style of Scott Meyer's C++ books, Joshua Bloch - the head behind several modern Java libraries - presents the essential tricks of the trade and best practises when it comes to Java programming. This is essential when you want to write highly maintainable, efficient modern Java code.

The second edition puts a lot of emphasis on all the new language features that came with Java 5
Apr 10, 2013 Jesse rated it liked it  ·  review of another edition
Score: 3.5/5

Effective Java: even the title is concise and to-the-point, like the rest of the book's writing. This is not a book for beginners, but rather a book on general software design concepts, particularly with respect to Java itself. The book is organized into a few dozen "items", most of which follow this format:
1) "Here's a suggestion. You should probably follow it."
2) "Here's an example of following it, here's an example of why not following it is bad, and here's an example of when you
Apr 16, 2009 Michael rated it it was amazing  ·  review of another edition
Shelves: 2009_read, 2007_read
Although it is a bit outdated, 90% of the book contains great advise for any Java programmer. If you have not read this then you do not know how to program Java.
Anton Petrov
Mar 18, 2015 Anton Petrov rated it it was amazing
Shelves: in-english, mye, tech
By far the best programming book I have ever read to date.
Jun 20, 2010 Francis rated it it was amazing
This is a unique and very worthwhile work for experienced Java developers who want to take their Java skills to the next level. It assumes that the reader is fully comfortable programming in Java, and gives a collection of tips on how to exploit certain language features, how to avoid various pitfalls, and so forth. The book makes frequent reference to design patterns, but it is not a design patterns book. It is also distinct from a “software engineering” book, but rather concentrates on aspects ...more
May 13, 2012 Tomasz rated it it was amazing  ·  review of another edition
Shelves: 2009, technical, owned
If most programmers consider Core Java to be the best book for beginners, they should think about “Effective Java” as the best book for intermediate and more advanced Java programmers.
After this book my awareness about how good Java code should look like improved a lot. I learnt a lot of interesting and useful approaches to developing code in different situations. And, in spite of being heavily packed of knowledge, I can not say that reading this book was difficult. It was a nice lecture althoug
Aug 10, 2010 Dimitko rated it really liked it  ·  review of another edition
This book impressed me with the amount of practical use-cases of Java subtleties and intricacies -- for example, the proper implementation of "equals" method in classes.

The author not only shows us some common misconceptions about the "low level" Java mechanics (not the native level, but the basics of the language and the Java API), but also gives us many examples from his rich carreer.

It is my opinion that understanding the basics of Java (it turns out many of us don't) is the key to avoiding m
John Chilton
Jul 09, 2010 John Chilton rated it really liked it  ·  review of another edition
If you program Java, you must read this book. You won't learn any new syntax, language feature, library, or framework, but you will be a much better programmer as a result of reading this book. Its the best anything on Java I have read. I don't agree with 100% of the material in this book, but Joshua Bloch has a strong, clear opinions and he argues them well. This book is so good, I think you should read it even if you aren't a Java programmer but program C#, C++, or something else along those l ...more
Jul 14, 2013 Denis rated it it was amazing
This book is simply brilliant. Updated to the most recent language specification it covers a lot of issues and caveats that almost every Java developer encounters every day. The author is the guy who has designed and implemented the Collections framework and he knows his subject very well. This book can and definitely will increase one's productivity dramatically. The only obvious prerequisite is that a reader should already know and have experience in Java. Otherwise it would be better to inves ...more
Arjun Vade
Mar 25, 2016 Arjun Vade rated it it was amazing  ·  review of another edition
Quoting the foreward as is here, it justifies perfectly what this book is all about.

"If you have ever studied a second language yourself and then tried to use it outside the classroom, you know that there are three things you must master: how the language is structured (grammar), how to name things you want to talk about (vocabulary), and the customary and effective ways to say everyday things (usage). Too often only the first two are covered in the classroom, and you find
native speakers constan
Bhakta Kishor Behera
Java is a set of several computer software and specifications developed by Sun Microsystems, later acquired by Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones to enterprise servers and supercomputers. While less common, Java applets run in secure, sandboxed environments to provide many features of native applicati ...more
Apr 16, 2014 Jan-Willem rated it it was amazing  ·  review of another edition
Jordi Gil
Jan 05, 2015 Jordi Gil rated it it was amazing
5/5 Stars

Absolutely a must have read for any Java developer regardless of experience and knowledge. Even after more than 10 years using Java I was still amazed to learn so many things from this book. Granted there are things I have never needed or used (such as developing my own public API's), but there were a few things that I usually do that helped me to understand better the language and improve my coding skills.

The book is split into 78 chapters, grouped by different areas of the Java langua
Venkat Pedapati
Jan 06, 2013 Venkat Pedapati rated it it was amazing  ·  review of another edition
If you have already done a few years of programming in an object oriented programming language like Java, this book might make you very uncomfortable. More than saying what to do, this book stresses on what not to do in Java and you'll thank for it in the long term.

The tips are organised into items each of few pages and can be read independently.
Jun 28, 2010 Jeffrey rated it it was amazing
Shelves: programming
Easy to read for a programming book. Great information about the best way to use java. Also contains many sections detailing how changes in java affect how you should implement your code.

Excellent for Java developers keeping current on Java
Sep 19, 2009 Ryanjustus rated it it was amazing  ·  review of another edition
Amazing book that I would recommend every Java developer have in his library. This book covers the best practices aspects of programming Java that are pretty hard to pick up without years and years of trial and error and seeing what works best.
Owen Lindsell
Mar 04, 2012 Owen Lindsell rated it it was amazing  ·  review of another edition
Points out loads of really important pitfalls that you really should know if you want to write quality code. In a style that's informative and enjoyable.
Roger Camargo
Jan 24, 2013 Roger Camargo rated it really liked it  ·  review of another edition
Varias dicas para não cometermos erros comuns de programação em Java. Recomendo a leitura
Kenneth Miller
Oct 19, 2014 Kenneth Miller rated it it was amazing  ·  review of another edition
An excellent series of recommendations about how to author high quality Java software. It was given to me by my manager at Amazon during my internship, and I read it as much as I could. This is a book that really makes you think about what you're doing in authoring software-you shouldn't just hammer out code as fast as you can, you have to actually consider what you're doing and the implications down the road. This book helped further cement in me the drive to make the software that I write exhi ...more
Max Savchenko
Jul 24, 2015 Max Savchenko rated it it was amazing  ·  review of another edition
Одна из немногих книг, написанная, как мне кажется, не по принципу "Мне платят за количество строк", а "У меня есть куча умных мыслей, которыми я готов поделиться". Содержит пачку советов и решений по тем или иным вопросам, с которыми сталкивается разработчик каждый день. Причем почти в каждом пункте автор помимо описания проблемы приводит быстрый и кривой вариант решения, а потом - корректный и красивый (с объяснением, почему надо делать именно так, а не иначе). Прекрасное чтиво для Java-програ ...more
Sep 19, 2014 Andrey rated it really liked it
Shelves: technical
Great book but some parts can be skipped.

By chapters:

2 Creating and Destroying Objects.
Really interesting chapter but I didn't use these tips in practice.

3 Methods Common to All Objects.
You really should read this part, especially if you have no or little experience.

4 Classes and Interfaces.
Good OO advices.
One note: I prefer protected access over private because you can't know all use cases of your code.

5 Generics.
I think these advices are quite obvious nowadays.

6 Enums and Annotations.
Moayad Taibah
Jan 27, 2014 Moayad Taibah rated it really liked it  ·  review of another edition
Shelves: reference
Chapters Read: 2 through 10

This book is a hands-on guide and a reference that should be kept by the side of any java developer. It provides a list of dos and donts in when creating and handling different data structures in java and it does so by providing a fully-fledged, working examples and explaining what went wrong, or right.

The minor disadvantage this book has is that I felt it was tailored for java as it references a lot of its library. However, I read this book as part of a course and I
Oct 14, 2013 Maciek rated it really liked it  ·  review of another edition
This is a fantastic book. It gives you a ton of bite sized ways to improve your code, that seem to be able to make wonders for your programs when used in aggregate.

I especially enjoyed the chapters on Serialization and Concurrency, as I feel these topics are not adequately represented in more basic books about Java. The chapters more concerned with API design had a similar vibe to Martin Odersky's "Programming in Scala" and the general feel of the Scala language, despite some philosophical diffe
Jonny Andersson
Aug 01, 2012 Jonny Andersson rated it it was amazing  ·  review of another edition
I came to love this book already after I have had read the first edition of it. I didn't know much about it before that. I had just heard that it is good but I was just knocked and my first impression was that I should have read this book already a lot earlier! I read the first edition two times to catch as much as possible from it. I am not sure if I have read the second edition two or three times now to repeat it and update myself when it have been a while since my last reading. Anyone that ca ...more
Rahma Naveed
import java.util.Scanner;
public class JavaApplication54 {

* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
Scanner in= new Scanner (;
System.out.println("enter your name");
System.out.println("enter math marks in quiz 1");
int b=in.nextInt();
System.out.println("enter your math quiz marks in quiz 2");
int c=in.nextInt();
System.out.println("enter your math test mark in test 1");
int d=in.nex
Jan 14, 2016 Horia rated it liked it  ·  review of another edition
The reason for which I've started reading this book is that it appears that many people think it's very good (and recommend it for java software engineers).

I've got around 5 years of experience with java and I'd have to say that only 30-40% of the guidelines in the book are worthwhile. For the rest: some guidelines have been common practice for some time, some guidelines apply only if you work in a specific domain (e.g. creation of public apis) and some guidelines are simply outdated.

The book go
Shakher Sharma
Feb 09, 2016 Shakher Sharma rated it it was amazing  ·  review of another edition
Fabulous! If you have been working in Java(Core) and still wondering what are the golden coding rules for it then this is the single most valuable book you should read. Each rule is covered in a separate chapter that makes this book an easy read. This book will take your coding skills to a new high.
Dzmitry Kishylau
Nov 22, 2015 Dzmitry Kishylau rated it really liked it  ·  review of another edition
I was looking for a refresher book on Java that wouldn't start with an explanation of what a class and an object is, or Hello World program. This book worked perfectly. Some of the chapters are a real pain to read, but it's clearly Java's fault, not the author's.
Apr 10, 2015 Luboš rated it it was amazing  ·  review of another edition
"Great how-to resource for the experienced developer."

Classes should be immutable unless there’s a very good reason to make them mutable.

There are several classes in the Java platform libraries, such as java.util.Date and java.awt.Point, that should have been immutable but aren’t.

selection among overloaded methods is static, while selection among overridden methods is dynamic

just because you can overload methods doesn’t mean you should

More computing sins are committed in the name o
« previous 1 3 4 5 6 7 8 9 99 100 next »
  • Java Concurrency in Practice
  • Spring in Action
  • Programming in Scala
  • Thinking in Java
  • Refactoring: Improving the Design of Existing Code
  • Test Driven Development: By Example
  • Java Generics and Collections
  • Head First Design Patterns
  • Working Effectively with Legacy Code
  • Design Patterns: Elements of Reusable Object-Oriented Software
  • Java Performance
  • Seven Languages in Seven Weeks
  • The Practice of Programming
  • Programming Clojure
  • Growing Object-Oriented Software, Guided by Tests
  • Effective C++: 55 Specific Ways to Improve Your Programs and Designs
  • Domain-Driven Design: Tackling Complexity in the Heart of Software
  • Programming Pearls

Goodreads is hiring!

If you like books and love to build cool products, we may be looking for you.
Learn more »

Share This Book

No trivia or quizzes yet. Add some now »

“One advantage of static factory methods is that, unlike constructors, they have names.” 4 likes
“Learning the art of programming, like most other disciplines, consists of first learning the rules and then learning when to break them.” 2 likes
More quotes…