java中创建对象的方式有几种?

有四种

  1. 调用构造器创建对象;
  2. 使用类反射创建对象
  3. 使用clone方法创建;
  4. 使用反序列化创建对象
posted @ 2020-03-17 14:27  小小吸血鬼  阅读(269)  评论(0编辑  收藏  举报