执行下面代码后,( )结论是正确的. String[] s=new String[10];
相似题目
-
类Student代码如下: class Student{ String name; int age; Student(String nm){ name = nm; } } 执行语句Student stu = new Student()后,字段age的值是哪项?()
-
下面代码执行后,正确的输出结果是()。
-
下面代码执行后,正确的输出结果有()。
-
现有: class A {public String name="a"} class B extends A {public String name="b"} 执行如下代码后的结果是哪项?() A a=new B(); System.out.println(a.name);
-
类Student代码如下:D class Student{ String name; int age; Student(String nm){ (构造方法) name = nm; } } 执行语句Student stu = new Student()后,字段age的值是哪项?()
-
执行以下代码,输出结果的结果是? () public class Test{ public String[] ss = new String[5]; public static void main(String[] args){ System.out.println(ss[1]); } }
-
class MyApp{ public static void main(String[] args){ int age; System.out.println(“age=”+age); } } 执行上述代码后输出的结果是哪项?()
-
下面是创建Statement接口并执行executeUpdate方法的代码片段:conn=DriverManager.getConnection(\jdbc:odbc:book\,\\,\\);stmt=conn.createStatement();String strsql=\insert into bookvalues('TP003', 'ASP.NET','李','清华出版社',35)
-
执行下面代码,下面描述正确的是( ) public class Person{ static int arr[]=new int[10]; public static void main(String a[]){ System.out.println(arr[1]); } }
-
执行下列代码后,哪个结论是正确的 String[] s=new String[10];
-
如下这段代码执行后,字符串s的值是________?String s=”hello”;s.concat(“mrs”);s.toUpperCase();s+=” there”;
-
执行下面的代码会引发()异常。 String str = null; String strTest = new String(str);
-
关于下面程序,()的结论是正确。publicclassJ_Test{publicstaticvoidmain(String[]args){int[]a=newint[5];boolean[]b=newboolean[5];System.out.println(a[4]);System.out.println(b[5]);}}
-
执行下面语句后,输出结果是()String s=""hello,World!"";System.out.println(s.length()); A、12B、14C、16D、18
-
执行完下面程序片段后,()的结论是正确的。inta,b,c;a=1;b=2;c=(a+b>3?a++:b++);
-
给出下面代码: public class Person{ static int arr[] = new int[10];public static void main(String a[]) {System.out.println(arr[1]); } } 那个语句是正确的()。
-
给出下面代码: public class Person{ static int arr[] = new int[10];public static void main(String a[]) {System.out.println(arr[1]); } } 编译时正确,运行时将产生错误是正确的。()
-
给出下面代码: public class Person{ static int arr[] = new int[10];public static void main(String a[]) {System.out.println(arr[1]); } }()是正确的。
-
给出下面代码: public class Person{ static int arr[] = new int[10];public static void main(String a[]) {System.out.println(arr[1]); } }编译时将产生错误)是正确的。()
-
给出下面代码: public class Person{ static int arr[] = new int[10];public static void main(String a[]) {System.out.println(arr[1]); } } 哪个语句是正确的()。
-
执行”String[] s = new String[10];”语句后,结论正确的是()
-
下面代码执行后的结果是()。
-
您正在使用Microsoft Visual Studio 2005 IDE检查一个返回string的方法的输出信息,您指定这个方法的输出给一个命名为fName的变量,您需要写一个代码片段打印下面这一行信息"Test FaileD."如果fName的值不为”JohnJohn””,您应该确定这个应该程序的代码持续的执行,您应该使用哪一个代码片段()
-
执行下列代码后,哪个结论是正确的 String()s=new String