关于数组元素的默认值,错误的是()
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