最后的pri2 hello2=new pri2()是怎么运行的?
package com.imooc;
public class pri2{
int num1;
int num2;
static int num3;
public pri2(){
num1=91;
System.out.println("通过构造方法为变量num1赋值");
}
{
num2=74;
System.out.println("通过初始化模块为num2赋值");
}
static{
num3=83;
System.out.println("通过静态初始化模块为怒目赋值");
}
public static void main(String[] args) {
pri2 hello=new pri2();
System.out.println("num1:"+hello.num1);
System.out.println("num2:"+hello.num2);
System.out.println("num3:"+num3);
pri2 hello2=new pri2();
}
}