请大虾帮我看看这程序~~!
这个程序看不懂 不是很明白 请大虾帮我分析一下
public class StaticCode
{
static String country;
static
{
country = "china";
System.out.println("StaticCode is loading");
}
}
class TestStaticCode
{
static
{
System.out.println("TestStaticCode is loading");
}
public static void main(String [] args)
{
System.out.println("begin executing main method");
new StaticCode();
new StaticCode();
}
}