问题:下列哪些访问修饰符是在子类中可见的?()A、 privateB、 defaultC、 protectedD、 public
查看答案
问题:有关for和while循环,以下说法错误的是() A、for循环的循环变量只能是从零开始或者从1开始的整数B、while循环是最通用的循环语句C、for循环在固定次数的循环中使用比较方便D、for循环能够完成工作,用while循环也能完成
问题: 现有: public class Tester { public static void main (String[] args) { intx-5; Integer xl=x; Integer x2=x; int x3=new Integer(5); system..ut.print(x1.equals(x)); system..ut.print(xl==x); system..ut.print(x2.equals(xl)); system..ut.print(x2==xl); system..ut.print(x2==x3); system..ut.print(x2.equals(x3)); } } 结果为:() A、编译失败B、falsefalsetruetruetruetrueC、truetruetruetruetruetrueD、falsefalsetruetruetruefalseE、truefalsetruefalsefalsetrueF、运行时异常被抛出
问题:以下有关接口的叙述错误的是哪项?() A、 一个类可以实现多个接口B、 接口不能被继承C、 类实现接口时必须实现其中的方法D、 接口中只能包含抽象方法和常量
问题:HTTP中的POST和GET在下列哪些方面有区别()。A、数据位置B、明文密文C、数据安全D、长度限度E、应用场景
问题:Java中方法绑定有哪些形式?()A、编译时刻绑定B、运行时刻绑定C、静态绑定D、私有绑定
问题:Which statements concerning the event model of the AWT are true?() A、At most one listener of each type can be registered with a component.B、Mouse motion listeners can be registered on a List instance.C、There exists a class named ContainerEvent in package java.awt.event.D、There exists a class named MouseMotionEvent in package java.awt.event.E、There exists a class named ActionAdapter in package java.awt.event.
问题: A developer is designing a multi-tier web application and discovers a need to hide the details of establishingand maintaining remote communications from the client. In addition, the application needs to find,in a transparent manner,the heterogeneous business components used to service the client’s requests. Which design patterns, working together, address these issues?()A、Business Delegate and Transfer ObjectB、Business Delegate and Service LocatorC、Front Controller and Business DelegateD、Intercepting Filter and Transfer Object
问题:什么是字符串?Java中的字符串分为哪两类?
问题: 以下语句的含义是() char[] arrcrlf={13,10}; String crlf=new String(arrcrlf); stringBuffer dest = new StringBuffer("西行漫记"); dest.append(crlf); A、字符串"西行漫记"不变B、字符串"西行漫记"的最后一个字被删除C、语句存在语法错误D、在字符串"西行漫记"的后面加回车换行符
问题:能够遍历泛型List〈Integer〉 al中的所有元素的语句是哪项?() A、for(Integer i : al)B、for(i : al)C、for(al)D、forEach(Integer i : al)
问题: 现有: 1. class Book { 2. private final void read() { System.out.print("book "); } 3. } 4. class Page extends Book { 5. public static void main(String [] args) { 6. // insert code here 7. } 8. private final void read() { System.out.print("page "); } 9. } 和如下三个代码片段 ( x, y, z ): x. // just a comment y. new Page().read(); z. new Book().read(); 分别插入到第6行,有几个允许代码通过编译并可以运行且无异常?() A、 0B、 1C、 2D、 3
问题:两个浮点数相除,即使除数为0,也不会出现异常退出。
问题:将GUI窗口划分为东、西、南、北、中五个部分的布局管理器是:() A、 FlowLayoutB、 GridLayoutC、 CardLayoutD、 BorderLayout
问题:Which can be used to encode charS for output?()A、 Java.io.OutputStream.B、 Java.io.OutputStreamWriter.C、 Java.io.EncodeOutputStream.D、 Java.io.EncodeWriter.E、 Java.io.BufferedOutputStream.
问题:下列哪项是String的字面量?() A、“Hello”B、‘world’C、/u2345D、new String(“good”)
问题: int i = 1,j = -1; switch (i) { case 0, 1:j = 1; case 2: j = 2; default; j = 0; } System.out.println(“j=”+j); What is the result?() A、 j = -1B、 j = 0C、 j = 1D、 j = 2E、 Compilation fails.
问题:假如我们想要对象eh来处理TextArea对象t的TextEvent事件,那么我们应如何把eh添加为t的事件处理程序?() A、 t.addTextListener (eh)B、 eh.addTextListener (t)C、 addTextListener (eh,t)D、 addTextListener (t, eh)
问题:什么是ChechedException和UncheckedException?
问题:Which of the following statements about variables and their scopes are true? () A、 Instance variables are member variables of a class.B、 Instance variables are declared with the static keyword.C、 Local variables defined inside a method are created when the method is executed.D、 Local variables must be initialized before they are used.