下面程序执行后的输出结果为( )。 public class fun { public static void main(String args[]) { String greets="How are you!"; String s=greets.substring(0,3); System.out.println(S); } }A.HowB.are.C.youD.how ate you!

下面程序执行后的输出结果为( )。 public class fun { public static void main(String args[]) { String greets="How are you!"; String s=greets.substring(0,3); System.out.println(S); } }

A.How

B.are.

C.you

D.how ate you!


相关考题:

下列程序执行后的输出结果是 included main( ) { char arr[2][4]; strcpy(arr,"you") 下列程序执行后的输出结果是#included<string.h>main( ){ char arr[2][4];strcpy(arr,"you");strepy(arr[1],"me");arr[0][3]='';cout<<arr<<endl;}A.youmeB.youC.meD.err

下列程序的执行结果是 ( ) public class Test { public int aMethod() { satic int i=0; i++; System.out.println(i); } public static void.main(String args[]) { Test test=new Test(); test.aMethod(); }A.编译错误B.0C.1D.运行成功,但不输出

有下列程序段 public class fun { public static void main(String args[]) { char b[]="Hello,you"; b[5] = 0; System.out.println(s); } 执行此程序后,得到的输出结果是( )。A.Hello, youB.Hello0youC.HelloD.0

下面程序执行后的输出结果为( )。 public class fun { public static void main(String args[]) { String greets = " How are you!"; String s = greets.substring(0,3); System.out.println(s); } }A.HowB.areC.youD.how are you!

有下列程序段 public class fun { public static void main(String args[]) { char b[] = "Hello,you"; b[5] = 0; System.out.println(s); } 执行此程序后,得到的输出结果是( )。A.Hello,youB.Hello0youC.HelloD.0

当执行下面程序且输入a boy时,输出的结果是______。includeincludemain(){c 当执行下面程序且输入a boy时,输出的结果是______。 #include<stdio.h> #include<string.h> main() { char ss[81]="A BOY",hh[81],*pt; scanf("%s",hh); pt=strcat(ss,hh); puts(pt); printf("%s\n",hh); }A.A BOY a aB.A BOY a boy a boyC.A BOY a boy aD.A BOY a boy a boy

下列程序执行后的输出结果是 include main() { char arr[2][4]; strcpy( 下列程序执行后的输出结果是 #include<string.h> main() { char arr[2][4]; strcpy(arr, "you"); strcpy(arr[1], "me"); arr[0][3]=''; cout<<arr<<endl; }A.youmeB.youC.meD.err

当执行下面的程序时,如果输入ABC,写出程序输出结果 #include "stdio.h" #include "string.h" main() { char ss[10]; gets(ss); strcat(ss,"6789"); printf("%sn",ss); }

main方法是Java应用程序执行的入口。以下main方法声明正确的是()。A.public static void main()B.public void main(String[] args)C.public static String main(String args[])D.public static void main(String args[])