I was wondering is there is a keyboard shortcut (in IntelliJ) for creating a new instance of an object. e.g. when I type PersonObject personObject = new PersonObject, is there a way to type this faster? Instead of writing it out, or using autocomplete. Answer The Answer by racraman looks like a good one. An alternative is to type part
Tag: instantiation
Is it better practice to use static factory methods over an interface implemented by many different objects? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago. Improve this question It seems as though you could either use static factory methods or you can use an interface that many objects implement