public static factory method
问题 First of all please forgive me if its a really dumb question, I am just trying to learn this language to its core. I am reading Effective Java and the very first chapter talks about Static factory methods vs. Constructors. Their pros and cons. Few things that are confusing to me are: class of an object returned by static factory method is nonpublic - what exactly does it mean? unlike constructors static factory methods are not required to create a new object each time they are invoked - How