I am wondering about correct definition for such construction:
class A { public static A create() { return new A(); } private A() { } } In Effective Java (Item 1) and on wikipedia article I found that this is called Static Factory Method (some kind of Factory Method).
But during reading of Refactoring to Patterns (Chapter 6) I met the same construction called Creation Method. Also, there is a note that it should not be messed up with a Factory Method pattern.
Where truth is?