一道Java的英文题,不会做,请高手指点,还有一个数组的~~

Whatwillbetheresultofattemptingtocompileandrunthefollowingcode?abstractclassMineBase{... What will be the result of attempting to compile and run the following code?

abstract class MineBase { abstract void amethod(); static int i;}public class Mine extends MineBase { public static void main(String argv[]){ int[] ar=new int[5]; for(i=0;i < ar.length;i++) System.out.println(ar[i]); }}
1) a sequence of 5 0's will be printed
2) Error: ar is used before it is initialized
3) Error Mine must be declared abstract
4) IndexOutOfBoundes Error

下面哪个语句是创建数组的正确语句?
A、 float f[][] = new float[6][6];
B、float []f[] = new float[6][6];
C、float f[][] = new float[][6];
D、float [][]f = new float[6][6];
E、float [][]f = new float[6][];
答案是什么,能否详细解释一下~
展开
 我来答
前端小趴菜
2008-04-20 · 超过26用户采纳过TA的回答
知道答主
回答量:79
采纳率:0%
帮助的人:0
展开全部
第一题(2)使用前要初始化
第二题(E)就这个对,比较着看看,就区分开了
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式