java 创建对象的方式

来源:互联网 发布:linux bond 模式 编辑:程序博客网 时间:2024/04/28 11:42

1. new

2.Class的newInstance()

3.反序列化从IO流总恢复Java对象

4.clone()方法复制新对象

0 0
原创粉丝点击