effective java ebook

Alibabacloud.com offers a wide variety of articles about effective java ebook, easily find your effective java ebook information here online.

Effective Java Directory

exceptions throws a corresponding exception to the abstract Each method throws an exception that must have a document Include information in the detail message that could be failed to replenish Try to keep the failure atomic Do not ignore exceptions Concurrent Synchronizing access to shared mutable data Avoid over-synchronization Executor and tasks take precedence over threads Concurrency tools take precedence over wait and notify Documentation

Reading notes--effective Java; directory structure, easy to review and find

exceptions for programming errors 59th: Avoid unnecessary use of the exception that is examined 60th: try to use the standard exception 61st: throws an exception corresponding to the abstract 62nd: All exceptions thrown by each method must have a document 63rd: contains the failure-capture information in the detail message 64th: Try to keep the failure in the Atomic 65th Bar: Do not ignore exceptions chapter 10th Concurrent 66th: Synchronizing access to shared variable data 67th: Avoid too many

Effective Java Reading Notes value 2nd: Consider using a constructor when you encounter multiple constructor parameters

parameterless builder method to generate the immutable object. This builder is the static member class of the class of its builder.public class Person {private string id;private string Name;private string address;public the parameters necessary for static class builder{//Priv Ate final string id;//optional parameter private String name = "";p rivate string address = "";p ublic Builder (String Id) {this. id = ID;} Public Builder name (String name) {this.name = Name;return this;} Public Builder a

Big talk effective Java core combat programming thought of the Monkey King's trick

I do not know whether we remember in the "Journey to the" in the Lotus Hole in the story of the Treasure, is the Monkey King skillfully grabbed the treasures, the gold and Silver Kok King that chapter. What does this story give us? What is the connection between this story and effective Java? Or continue the style of the article, read the code, read the story. 1import static org.junit.assert.*;2import org.

Total Pages: 8 1 .... 4 5 6 7 8 Go to: Go

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.