研发工程师的笔试题

进修社 人气:1.47W

我报的java研发工程师,没想到他居然考C语言擦。只有两道附加题是java的.,只记得一道了,差不多的意思求他输出的结果:

研发工程师的笔试题

class test{

public static int n=99;

public static test t1=new test(t1);

public static test t2=new test(t2);

public static int i=print(i);

public static int j=i;

{

tln(“构造块”);

}

static{

tln(“静态块”);

}

public void print(String str){

tln((++k)+“:”+“   i=”+i+“  n=”+n);n++;i++;

public  void test(String str){

tln((++k)+“:”+“   i=”+i+“  n=”+n+str);n++;i++;

}

}

public static void main(String args[]){test test1=new test(“init”);

}

}