题库 软件开发 题目列表 请写出以下java代码的输出内容[$##$] public clas...
填空题
请写出以下java代码的输出内容[$##$]
public class TestCount {
   
public static void main(String args[]) {
       
Count count = new Count( );
       
count.count(count.getCount( )).getCount( );
       
new Count( ).count(count.getCount( ));
    }
   
public static class Count {
        volatile Integer count = 2018;
       
public Count count(Integer count) {
           
System.out.println(++count);
           
return this;
       
}
       
public Integer getCount( ) {
           
System.out.println(++count);
           
return count;
       
}
    }
}

题目信息
校招真题
-
正确率
0
评论
35
点击