| 11.Java虚拟机的执行过程有多个特点,下列哪个特点不属于JVM执行特点? A、多线程 B、动态连接 C、异常处理 D、异步处理 |
| A B C D |
| 12.编译Java application源程序文件将产生相应的字节码文件,这些字节文件的扩展名为 A、.java B、.class C、.html D、.exe |
| A B C D |
| 13.下列哪个是反斜杠字符的正确表示? A、\\ B、*\\ C、\ D、\’\’ |
| A B C D |
| 14.下面属于Java 关键字的是 A、NULL B、IF C、do D、While |
| A B C D |
| 15.下列代码的执行结果是: public class Test1{ public static void main(String args[]){ float t=9.0f; int q=5; System.out.println((t++)*(--q)); } } A、40 B、40.0 C、36 D、36.0 |
| A B C D |
| 16.下列程序的输出结果为 public class Short{ public static void main(String args[]){ StringBuffer s=new StringBuffer("Hello"); if((s.length()>5)&&(s.append("there").equals("False"))); System.out.println("value is "+s); } } A、value is Hello B、value is thereHello C、value is Hellothere D、编译错误 |
| A B C D |
| 17.下列关于for循环和while循环的说法中哪个是正确的? A、while循环能实现的操作,for循环都能实现 B、while循环判断条件一般是程序结果,for循环判断条件一般是非程序结果 C、两种循环在任何情况下都可以相互转换 D、两种循环结构中都必须有循环体,循环体不能为空 |
| A B C D |
| 18.给出下面程序段: if(x>0){System.out.println("Hello.");} else if(x>-3){System.out.println("Nice to meet you!");} else {System.out.println("How are you?");} 若打印字符串“How are you?”,则x的取值范围是 A、x>0 B、x>-3 C、x<=-3 D、x<=0&x>-3 |
| A B C D |
| 19.下列说法中,哪个是正确的? A、类是变量和方法的集合体 B、数组是无序数据的集合 C、抽象类可以实例化 D、类成员数据必须是公有的 |
| A B C D |
| 20.为aB类的一个无形式参数无返回值的方法method书写方法头,使得使用类名aB作为前缀 就可以调用它,该方法头的形式为 A、static void method() B、public void method() C、final void method() D、abstract void method() |
| A B C D |