class.getDeclaredConstructors() 方法获取的构造方法数组
与类中的构造方法顺序相反
如下面代码:
构造器顺序为:
Example_01(String s, int i1)
Example_01()
Example_01(String… strings)
class.getDeclaredConstructors() 方法获取的构造方法数组:
Example_01(String... strings)
Example_01()
Example_01(String s, int i1)
package thread.example;
public class Example_01 {
String s;
int i1,i2, i3;
protected Example_01(String s, int i1) {
this