当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

下面程序执行后的输出结果为()。public class fun{public static void main(String args[]){Strin


下面程序执行后的输出结果为()。 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 are you!

参考答案
您可能感兴趣的试题
  • 下面程序段的输出结果是______。class Test{ public static void main(String args[ ]){ MyThread

  • 下面程序的输出结果是 #include classexample { inta: public: example(int B.{a=n++;}

  • 执行下面程序段的输出结果为()。 public class Q { public static void main(String argv[]) {

  • 当输入150H f1 下列程序执行后的输出结果为()。READ(* *) XY=0.0IF(X.G

  • 若有以下定义 以下程序段中输出语句执行后的输出结果为()

  • 下列程序运行后的输出结果为( )。public class Test {public static void main (String args[])