问题描述:
[填空题] 在switch语句中,break语句的作用是:执行完一个______分支后跳出______语句。
若声明“char a[15]=“Windows-9x”;”,语句“printf("%s",a+8);”的输出结果为 ______ 。
1991年,Sun公司的Jame Gosling、Bill Joe等人,为电视、控制烤面包机等家用电器的交互操作开发了一个__________软件,它是Java的前身。
Java 语言的循环语句包括for语句、do while语句和______语句。
下面程序的输出结果是______。 public class exl { public static void main(String[] args) {for(int cnt=0;cnt<10,;cnt++){ if(cnt==5) break; System.out.print(cnt);} } }
下列代码的执行结果是( )。 public class test5 public static void main (String args[]) String s1=new String("hello"); String s2=new String("hello"); System.out.prim(s1==s2); System.out.print(","); System.out.println(s1.equals(s2));
点评难度:
参考答案:
试题分享: