当前分类: Java认证考试
问题:类的可访问性不影响类成员的可访问性...
查看答案
问题:public class Foo { public void main (String args) { system.out.printIn(“Hello World.”); } } What is the result? () A、 An exception is thrown.B、 The code does no compile.C、 “Hello World.” Is printed to the terminal.D、 The program exits without pr...
问题:class Wrench { public static void main(String [] args) { Wrench w = new Wrench(); Wrench w2 = new Wrench(); w2 = go(w,w2); System.out.print(w2 == w); } static Wrench go(Wrench wr1, Wrench wr2) { Wrench wr3 = wr1; wr1 = wr2; wr2 = wr3; return wr3; ...
问题:1. interface A { public void aMethod(); } 2. interface B { public void bMethod(); } 3. interface C extends A,B { public void cMethod(); } 4. class D implements B { 5. public void bMethod() { } 6. } 7. class E extends D implements C { 8. public void...
问题:程序员已经创建了一个类,该类的实例可以用做Hashtable&#...
问题:Which two prevent a servlet from handling requests.?()A、 The servlet’s init method returns a non-zero status.B、 The servlet’s init method throws a Servlet ExceptionC、 The servlet’s init method sets the Servlet Response’s context length to 0D、 The servlet’...
问题:You want a cla...
问题:现有: class Banana2&en...
问题:public class X {...
问题:现有: 1. interface Altitude { 2. //insert code here 3. } 和4个声明: int HIGH = 7; public int HIGH = 7; abstract int HIGH = 7; interface int HIGH = 7; 分别插入到第2行,有多少行可以编译?() A、 0B、 1C、 2D、 3E、 4...
问题:abstract class abstrctIt { abstract float getFloat (); } public class AbstractTest extends AbstractIt { private float f1= 1.0f; private float getFloat () {return f1;} } What is the result? ()A、 Compilation is successful.B、 An error on line 6...
问题:构造函数只能重载不能覆盖...
问题:Java语言中表达式“11”+22的结果是哪项?() A、33B、1122C、22D、表达式错误...
问题:You are assigned&ensp...
问题:关于epoll和select的区别,哪些说法是正确的()。A、epoll和select都是I/O多路复用的技术,都可以实现同时监听多个I/O事件的状态B、epoll相比select效率更高,主要是基于其操作系统支持的I/O事件通知机制,而select是基于轮询机制C、epoll支持水平触发和边沿触发两种模式D、select能并行支持I/O比较小,且无法修改...
问题:Which two can ...
问题:Given the following code: 1) class Parent { 2) private String name; 3) public Parent(){} 4) } 5) public class Child extends Parent { 6) private String department; 7) public Child() {} 8) public String getValue(){ return name; } ...
问题:class Super { p...
问题:GUI事件机制的导入包是:() A、java.awtB、java.awt.eventC、javax.swingD、javax.swing.event...
问题:数据接收代码是否需要放在独立的线程中?()...