当前分类: Java认证考试
问题:Java 中char类型的数据长度为()A、8位B、16位C、32位D、64位...
查看答案
问题:定义枚举如下: public &ensp...
问题:现有: 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...
问题:能够遍历泛型List〈Integer〉 al中的所有...
问题:删除File实例所对应文件的方法是?() A、 mkdirB、 existsC、 deleteD、 isHidden...
问题:执行一个java程序“FirstApp”的方法是()A、运行:“java FristApp.java”B、运行:“java FristApp”C、运行:“javac FristApp.class”D、直接双击编译好的java目标码文件执行...
问题:现有: 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...
问题:现有: class TestMain...
问题:Which of the f...
问题:Which two are ...
问题:HTTP中的POST和GET在下列哪些方面有区别()。...
问题:下列哪项是String的字面量?() A、“Hello”B、‘world’C、/u2345D、new String(“good”)...
问题:Public class test&ens...
问题: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...
问题:A developer is d...
问题:public class Pass{ public static void main(String[]args){ int x=5; Pass p=new Pass(); p.doStuff(x); System.out.print("mainx="+x); } void doStuff(intx){ System.out.print("doStuffx="+x++); } } What is the result?()A、Compilation fails.B、An exception is throw...
问题:Java中方法绑定有哪些形式?()A、编译时刻绑定B、运行时刻绑定C、静态绑定D、私有绑定...
问题:public class WhileFoo...
问题:现有: class ThreadBoth extends Threaa implements Runnable { public void run() (System.out.print("hi"); } public static voicl main (String [] args) { Thread tl=new ThreadBoth(): Thread t2 = new Thread (tl): tl.run(): t2.run(...
问题:以下有关接口的叙述错误的是哪项?() ...