Reading Effective Java (To be continued)

After being taught a lesson by life, hope this will be a new start.

Recently when I was wrtiting Java and asking a review from my college, he recommended me this book. After that I found it is such an exciting experience to read that.

I am always curious and enthusiatic about reading technocial books. But always due to my own reasons, I didn’t stick to finishing it finally. Many people are anxious to get succeed but impetuous, I want to have at least one thing that I can persist on.

I want to record my thoughts and main ideas from this book through this series of blogs.

Sorry for my poor English.

Item 1: Consider Static Factory Methods Instead of Constructors

One advantage of static factory methods is that, unlike constructors, they have names.

For example, the constructor BigInteger(int,int,Random) which returns a BigInteger that is probably prime, would have been better expressed as a static factory method named BigInteger.probablePrime

A second advantage of static factory methods is that, unlike constructors, they are not required to create a new oject each time they’re invoked.

A third advantage of static factory methods is that, unlike constructors,