题目内容

关于数组元素的默认值,错误的是()

A. char--'"u0000'
Boolean--true
C. float--0.0f
D. int-- 0

查看答案
更多问题

定义字符串:String str=“abcdefg”;则str.indexOf('d')的结果是()

A. 'd'
B. true
C. 3
D. 4

下面()语句是创建数组的正确语句。

A. float f[5][6] = new float[5][6];
B. float []f[] = new float[5][6];
C. float f[5][] = new float[][6];
D. float [5][]f = new float[5][6];

public class Test {public static void main(String[] args) {String a=args[1];String b=args[2];String c=args[3];} } 执行命令:java Test Red Green Blue c的值是()?

A. c has value of null
B. c has value of Blue
C. the code does not compile
D. the program throw an exception

下列数据类型中,()属于Java基本数据类型.

A. 结构类型
B. 接口
C. 无符号整数类型
D. 字符类型

答案查题题库