class StaticDemo2
{
public static void main(String[] args)
{
new Test();
new Test(2); //结果:ADBDC
//System.out.println("Hello World!");
}
}
class Test
{
static
{
System.out.println("A");
}
Test()
{
System.out.println("B");
}
Test(int x)
{
System.out.println("C");
}
{
System.out.println("D");
}
}