Suppose I have a class ObjectInfo which contains Object name & Object type as String.(I am just cooking up something for the sake of asking the question.) And If I want to provide a static factory method to creating instances of this class, which of the following two methods is better & why? Basically, what I want to ask is