Jump to ratings and reviews
Rate this book

Effective Java

Rate this book
Since this Jolt-award winning classic was last updated in 2008 (shortly after Java 6 was released), Java has changed dramatically. The principal enhancement in Java 8 was the addition of functional programming constructs to Java's object-oriented roots. Java 7, 8, and 9 also introduced language features, such as the try-with-resources statement, the diamond operator for generic types, default and static methods in interfaces, the @SafeVarargs annotation, and modules. New library features include pervasive use of functional interfaces and streams, the java.time package for manipulating dates and times, and numerous minor enhancements such as convenience factory methods for collections.
In this new edition of Effective Java, Bloch updates the work to take advantage of these new language and library features, and provides specific best practices for their use. Java's increased support for multiple paradigms increases the need for best-practices advice, and this book delivers.
As in previous editions, each chapter consists of several "items," each presented in the form of a short, standalone essay that provides specific advice, insight into Java platform subtleties, and updated code examples. The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why. Coverage includes:
Updated techniques and best practices on classic topics, including objects, classes, methods, libraries, and generics How to avoid the traps and pitfalls of commonly misunderstood subtleties of the platform Focus on the language and its most fundamental libraries, such as java.lang and java.util

412 pages, Paperback

First published June 5, 2001

Loading...
Loading...

About the author

Joshua Bloch

9 books145 followers
There is more than one Joshua Bloch in the GR database. This is Joshua^Bloch, author of computing books.

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
5,143 (63%)
4 stars
2,178 (26%)
3 stars
596 (7%)
2 stars
133 (1%)
1 star
56 (<1%)
Displaying 1 of 1 review
Profile Image for Dimitar Trifonov.
78 reviews13 followers
December 11, 2021
Тъкмо си мислиш "Йей, вече разбирам Java!", a после прочиташ тази книга и осъзнаваш "Аха, ясно... Нищо не знам все още...". 😂 Ако си начинаещ, мисля, че тази книга не е много подходяща за теб, но ако си мислиш, че вече си "наясно с нещата" и имаш някакъв практически опит с езика, то тази книга според мен ще ти помогне да стигнеш следващото ниво.

Тази книга е много интересна, защото ти дава поглед върху някои от тънкостите на Java, в които лесно можеш да допуснеш грешка, която има потенциал да ти създаде доста главоболия по-нататък. Много от функционалностите на Java, които ползваш, най-вероятно ги ползваш просто по навик, без да ги разбираш добре (просто си прочел някъде онлайн, че нещо се прави по определен начин, а след това си започнал да го прилагаш на сляпо, без и ти да знаеш защо точно се прави така).

Тази книга ти обяснява ЗАЩО нещо се счита за добра или лоша практика, а в същото време ти показва алтернативни по-добри подходи, за които най-вероятно не би се сетил сам. Например нещо от рода на "Недей просто да имплементираш Serializable, колкото да го има там! Ако го направиш, може да ти се случат X и Y лоши неща! Ако ще го правиш, направи го по Z начин и имай предвид какви ще са последиците от това..." Най-вероятно (като мен) даже не си се замислял за това. 😅

P.S: Прочетете последното (мисля 3-то) издание на книгата, защото информацията в него е най-актуална. 😎
Displaying 1 of 1 review