61.A选项str为String 非数组,同时,若改成sub[j]会打印(数组元素个数)次。C选项foreach格式错误。D选项多一个i++。
62.String索引从0开始算。
63.略。
64.泛型不能用基础类型。除了int->integer之外,其他都是开头字母大写。
65.66.略。
67.A可以对bill进行减操作 。C选项用了private,Customer类中无法调用。D选项中可以对Bill进行直接操作。
68.doCalc中的return的是局部变量Var1 。
69.print中有String输出,后面的数字会作为字符串叠加。括号优先级更高。
70.protected为本包和子类可见。
71.略。
72.break语句不能用在循环和switch之外。如果if语句嵌套在循环或者switch中,OK。
73.存疑
74.super()和this()只能有一个在同一个class中。同时如果超类没有定义(即使是自带的空的构造函数),子类引用super会报错
75.略。
76.if语句编译时无法确认是否通过,pbh被视为未初始化,未初始化的变量不能在等号右边。
77.变成父类后使用的依然是子类方法。子类可以转为父类,父类不可以转为子类。
78.79.略。
80.ABE,略。
81.略。
82.
83.高精度不能往低精度转换。
84.catch之后如果throw e,会从try块跳出,跳入catch打印语句,最后跳到try catch块外的打印语句中。
85.86.略
87.E。
88.略
89.无正确答案。A选项array后面多了一个n,B选项array=new int[2],少了new,C选项int后面没有[],D选项没有new。
90.略
ps:静态方法可以被子类的同名静态方法隐藏,但无法被覆盖。