问题: 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
查看答案
问题: public class Test { private static int[] x; public static void main(String[] args) { System.out.println(x[0]); } } What is the result?() A、 0B、 nullC、 Compilation fails.D、 A NullPointerException is thrown at runtime.E、 An ArrayIndexOutOfBoundsException is thrown at runtime.
问题: 现有: 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、 接口中只能包含抽象方法和常量
问题: public class Wow { public static void go(short n) {System.out.println(”short”); } public static void go(Short n) {System.out.println(”SHORT”);} public static void go(Long n) {System.out.println(” LONG”); } public static void main(String [] args) { Short y= 6; int z=7; go(y); go(z); } } What is the result?() A、 short LONGB、 SHORT LONGC、 Compilation fails.D、 An exception is thrown at runtime.
问题:Java中所有类的父类是()。A、FatherB、DangC、ExceptionD、Object
问题: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.
问题: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.
问题:能够遍历泛型List〈Integer〉 al中的所有元素的语句是哪项?() A、for(Integer i : al)B、for(i : al)C、for(al)D、forEach(Integer i : al)
问题:如何设定包访问级的成员函数或成员变量() A、不需要任何关键字,缺省的访问级就是包访问级B、在类的开头集中定义C、使用package关键字D、在类的说明部分集中定义
问题: After a merger with another small business, your company has inherited a legacy WAR file but the originalsource files were lost. After reading the documentation of that web application,you discover that the WARfile contains a useful tag library that you want to reuse in your own webapp packaged as a WAR file. What do you need to do to reuse this tag library?()A、Simply rename the legacy WAR file as a JAR file and place it in your webapp’s library directory.B、Unpack the legacy WAR file, move the TLD file to the META-INF directory, repackage the whole thingas a JAR file, and place that JAR file in your webapp’s library directory.C、Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to thetop-level directory, repackage the whole thing as a JAR file, and place that JAR file in your webapp’slibrary directory.D、Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to the top-level directory, repackage the WAR, and place that WAR file in your webapp’s WEB-INF directory.
问题: 现有: 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
问题: Assume the tag handler for a st:simple tag extends Simple Tag Support. In what way can scriptlet code beused in the body of st:simple?()A、Set the body content type to JSP in the TLDB、Scriptlet code is NOT legal in the body of st:simple.C、Add scripting-enabled="true" to the start tag for the st:simple elementD、Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag
问题:下列哪项是String的字面量?() A、“Hello”B、‘world’C、/u2345D、new String(“good”)
问题:下载并安装JDK软件包,并尝试查看其中的JDK文档。
问题:HTTP中的POST和GET在下列哪些方面有区别()。A、数据位置B、明文密文C、数据安全D、长度限度E、应用场景
问题:Java中方法绑定有哪些形式?()A、编译时刻绑定B、运行时刻绑定C、静态绑定D、私有绑定
问题:GUI事件模型的组成元素包括()A、事件B、事件处理器C、GUI容器D、事件源
问题:文本框中显示的字符长度&可以显示的文本长度不同,一般后者远大于前者。
问题:下列哪项不是int类型的字面量?() A、/u03A6B、077C、OxABBCD、20