实例化一个类有以下四种方法:

1. new Xxx()

2. 通过反射机制中的newInstance()方法

3. clone()

4. 反序列化

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.