Introduction to the new article "Effective Java third Edition"

Source: Internet
Author: User

Objective

Since March last year I began to read "effective Java second Edition", of course, I read the Chinese version of the; Maybe I can not understand the ability, for the content of the book always feel difficult to understand; take the first chapter of the content " Create and destroy objects "to say, this is the most I read the chapter, presumably the reason everyone also understand, every time I can not read down, I began to read from the beginning, so, now I am the first chapter of this book is the most familiar." Later, on the Internet, I saw a netizen said that this book and most of the translation of books, for some of the content of the original translation is not very smooth, so it will lead to the reading of the people feel difficult to understand, so I ventured the English version of the comparison to see, found that it is easier to understand, So at last it took a month or two to finish the whole book. (Well, the real situation is that I've been involved in several projects this time, so I've accumulated a lot of programming experience, so there's a little bit of thought and understanding of the "best practices" recommended in the book "Effective Java".) )

In fact, so far, I will occasionally pick up the book to look, every time I read and feel the same as the last time, this may be "restudying" meaning it.

New entry for the third edition

Above the ramble people can not care about, now I will introduce the third version of the new entries added.

We can first look at the following picture, there is a whole concept.

Because, "effective Java second Edition" The original is published in 2008, so far (2018) years has been 10 years, the Java language in this decade has also developed relatively fast, for the second edition mentioned in the "best practice" some are not particularly recommended, fortunately, the author Joshua Uncle Bloch the old pen to bring the latest entries to our group of Muggles, as well as to update the original entries.

The original version of the book was finalized last year (December 18, 2017), and the author just added some "best practices" for Java 7, Java 8, and Java 9. In addition, the Muggle who must be concerned about Java development has learned that after the Java version of the rules changed, the "java release cycle changed to every six months. is not suddenly feel a little nervous ah, actually there is nothing to worry about, the rapid addition of new features, for us is also good, can reduce some inefficient operation, the use of new features to liberate productivity.

New features in Java 7
    • try-with-resources | A new method of resource closing processing
    • @SafeVarargs | Ignore any warnings generated by a method or constructor call that uses a parameter as a generic variable
New features in Java 8
    • Lambdas | Introducing Functional Programming
    • Streams | Streaming data-processing
    • Optionals | Refer to Google's Guava class library for solving null pointer exception (NULLPOINTEREXCEPTION,NPE) problems
    • Default Methods in Interfaces | There can be a default implementation method in the interface
New features in Java 9
    • Modules | Reorganize the JDK source code into modules, enhance the build system to support the compilation of modules, and enforce the application of module boundaries at build time
Summarize

This is the "effective Java third Edition" new entries, this article is just about the display of new additions, the specific content or need readers to read books to understand, I am currently in the reading, follow-up what reading sentiment will be timely and gentlemen share. So, the important question is, how to get the book, because the Chinese translation version is not so fast, if you have a little confidence in your English, you can try to read the original. Here I will benefit you. : "Effective Java third edition of the original PDF"

Resources
    • Oracle accelerates end of free support period for previous Java releases
    • JDK Official Release Notes
    • JDK 8 new features
    • Java 8 Learning Materials Summary
    • Effective Java Third edition of the original PDF

Introduction to the new article "Effective Java third Edition"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.