package com.tutorialspoint;
public class Test1 {
static{
System.out.println("1");
}
public Test1(){
System.out.println("2");
}
public static void main(String[] args) {
Test1 test1 = new test2();
test1 = new test2();
}
}
class test2 extends Test1{
static{
System.out.println("A");
}
public test2(){
System.out.println("B");
}
}