当前分类: Java认证考试
问题:Which of the f...
查看答案
问题:public class Pass { public static void main(String [1 args) { int x 5; Pass p = new Pass(); p.doStuff(x); System.out.print(” main x = “+ x); } void doStuff(int x) { System.out.print(” doStuff x = “+ x++); } } What is the result?() A、 Compilatio...
问题:现有: 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() { Syst...
问题:将GUI窗口中的组件按照从左到右如打字式排列的布局管理器是:() A、FlowLayoutB、GridLayoutC、BorderLayoutD、CardLayout...
问题:Java语言中提供了哪些元素来支持封装?() A、 class语句B、 new语句C、 package语句D、 访问修饰符...
问题:能够遍历泛型List〈Integer〉 al中的所有...
问题:下列属于非受检异常的是哪项?() &#...
问题:以下有关接口的叙述错误的是哪项?() ...
问题: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...
问题:下列哪项是String的字面量?() A、“Hello”B、‘world’C、/u2345D、new String(“good”)...
问题:在正方体上任取三个顶点连成三角形,则所得的三角形是直角非等腰三角形的概率为()。A、1/14B、4/7C、2/7D、3/7...
问题:现有: 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.p...
问题:public abstract class Shape { private int x; private int y; public abstract void draw(); public void setAnchor(int x, int y) { this.x = x; this.y = y; } } Which two classes use the Shape class correctly?()A、 public class Circle implements Shape {...
问题:A developer is d...
问题:现有: 1.class Over { 2.int dolt (long x) { return 3; } 3. } 4. 5. class Under extends Over { 6.//insert code here 7. } 和四个方法: short dolt (int y) { return 4; } int dolt(long Xr long y) { return 4; } private int dol...
问题:HTTP中的POST和GET在下列哪些方面有区别()。...
问题:import java.io.PrintWriter; class DoFormat { public static void main(String [] args) { int x = 42; int y = 12345; float z = 7; System.out.format("-%4d- ", x); System.out.format("-%4d- ", y); System.out.format("-%4.1d- ", z); } } 结果为:() A、编译失败B、-42- ...
问题:public class Employee...
问题:Runnable r = new Runnable() { public void run() { System.out.print(”Cat”); } }; Threadt=new Thread(r) { public void run() { System.out.print(”Dog”); } }; t.start(); What is the result?() A、 CatB、 DogC、 Compilation fails.D、 The code runs with no...
问题:Java中方法绑定有哪些形式?()A、编译时刻绑定B、运行时刻绑定C、静态绑定D、私有绑定...