public class per {
static {
System.out.println("static oer");
}
{
System.out.println("No static per");
}
per(){
System.out.println("per 构造函数");
}
}
public class perextends extends per{
perextends(){
System.out.println("perextends 构造函数");
}
static {
System.out.println("static perextends");
}
{
System.out.println("NO static perextends");
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
perextends per = new perextends();
}
}
static oer
static perextends
No static per
per 构造函数
NO static perextends
perextends 构造函数