您可能感兴趣的试卷
你可能感兴趣的试题
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";
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. 编译报错
A. ’\n’是表示char类型的换行字符;
B. 010是表示8进制的int类型值;
C. 1.0f表示float类型的值;
D. 20L是表示int类型的值;
A. public static void main(String[] args){}
B. public static void main(String args){}
C. public void main(String[] args){}
D. public static int main(String[] args){}
最新试题
在Hibernate 中关于缓存正确的说法有()
Hibernate 的关联维护中,最重要的是()
给定如下Java程序片断: class A{ public A (){ System.out.println("A"); } } class B extends A{ public B(){ System.out.println("B"); } public static void main(String[] args){ B b=new B(); } } 上述程序将()。
Hibernate 中的查询参数类型有()
Struts中标记的属性描述正确的是()
在Java中,下列代码将输出()。 1. public class integerequals 2. { 3. public static void main (String args[]) 4. { 5. Integer a= new Integer(3); 6. Integer b= new Integer(3); 7. System.out.println(a==b); 8. } 9. }
Hibernate 中的查询语句如下 from User u where u.name=:username and u.yearold=:yearold 正确的参数注入方式有()
Hibernate关联维护中关于“一对一”描述正确的是()
看下面关于switch的语句 switch(exp1 ) { } 表达式exp1可以是()类型
Collection 和 Collections正确的说法有()