定义字符串: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. 字符类型