Java日常刷题第三天

选择题 public class Test{ static int cnt=6; static{ cnt+=9; } public static void main(String[] args){ System.out.println("cnt="+cnt); } static{ cnt/=3; }; } cnt的值是:cnt=5 2.执行如下程序,输出结果是 2 24 46
相关文章
相关标签/搜索