1:构造器实例化
2:(静态工厂实例化)
3:实例工厂实例化
2.2(构造器实例化)【此方法在项目中较为常用】、(静态工厂实例化)、(实例工厂实例化)
原文:https://www.cnblogs.com/jiafeng1996/p/12360654.html