A.在"start()"中调用getParameter()函数 B.在"init()"中调用getParameter()函数 C.在"main()"中调用getParameter()函数 D.在"paint()"中调用getParameter()函数
多项选择题下面哪段语法执行正确()
A. String s = "Gone with the wind";String t = " good ";String k = s + t; B. String s = "Gone with the wind";String t; t = s[3] + "one"; C. String s = "Gone with the wind";String standard = s.toUpperCase(); D. String s = "home directory";String t = s - "directory";
多项选择题关于JAVA中数据类型描述正确的是()
A.double型是基本数据类型 B.Double型是基本数据类型 C.double型是引用数据类型 D.Double型是引用数据类型
单项选择题如下代码: public void Test() { try { oneMethod(); System.out.println( condition 1 ); } catch (ArrayIndexOutOfBoundsException e) { System.out.println( condition 2 ); } catch(Exception e) { System.out.println( condition 3 ); } finally { System.out.println( finally ); } } 如果oneMethod正常运行,则输出结果中是?()
A. condition 1 finally B. condition 2 finally C. condition 3 finally D. finally
单项选择题执行以下代码,输出结果的结果是? () public class Test{ public String[] ss = new String[5]; public static void main(String[] args){ System.out.println(ss[1]); } }
A. null B. -1 C. 编译时出错 D. 运行时报错
单项选择题阅读以下代码: public class Test{ public static void main(){ System.out.println(“x=”+x); } } 请问,代码运行的结果是?()
A. x B. x=x C. “x=”+5 D. 编译报错