重载赋值操作符时,应声明为( )。函数。
A:友元 B:虚 C:成员 D:多态
运行下列程序的结果是 ( )
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]);
A:打印5个0 B:编译出错,数组ar[]必须初始化 C:编译出错,Mine应声明为abstract D:出现IndexOutOfBoundes的例外
在Java语言的下列哪个包是编译器自动导入的
A:-1 B:1 C:2 D:编译出错,无法运行
在Java语言的下列哪个包是编译器自动导入的
A:-1 B:1 C:2 D:编译出错,无法运行
在Java语言的下列哪个包是编译器自动导入的
A:-1 B:1 C:2 D:编译出错,无法运行
运行下列程序的结果是 ( ) 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]);
A:打印5个0 B:编译出错,数组ar[]必须初始化 C:编译出错,Mine应声明为abstract D:出现IndexOutOfBoundes的例外