SCJP在线测试
时间还剩:
联系我们   收藏本站   设为首页   
 
JAVA下载 JAVA文摘 J2me学习 JAVA实例              


SCJP在线测试

〖 姓名:Guest〗

第1题(id号=669):

Which are most typically thrown by an API developer or an 
application developer as opposed to being thrown by the JVM? (Choose all that apply.)

A. ClassCastException 

B. IllegalStateException 

C. NumberFormatException 

D. IllegalArgumentException 

E. ExceptionInInitializerError 


请选择: A B C D E

第2题(id号=465):

Read the following snippet carefully
 public synchronized void someMethod(){
   //lots of code
   try {
     Thread.sleep(500);
   } catch(InterruptedException e) {
     //do some things here.
   }
   //more and more code here
 }
Select all correct answers
a. The code causes compilation error -sleep cannot 
   be called inside synchronized methods.
b. The Thread sleeps for at least 500 milliseconds
   in this method if not interrupted.
c. When the thread "goes to sleep" it releases the
   lock on the object.
d. The "sleeping" Threads always have the lock on the Object.


请选择: A B C D

第3题(id号=679):

2.  
 Given:

public static void main(String[] args) {

  // INSERT DECLARATION HERE
  for (int i = 0; i <= 10; i++) {
    List<Integer> row = new ArrayList<Integer>();
    for (int j = 0; j <= 10; j++)
      row.add(i * j);
    table.add(row);
  }
  for (List<Integer> row : table)
    System.out.println(row);
  }


Which statements could be inserted at // INSERT DECLARATION HERE to allow 
this code to compile and run? (Choose all that apply.)

A. List<List<Integer>> table = new List<List<Integer>>(); 

B. List<List<Integer>> table = new ArrayList<List<Integer>>(); 

C. List<List<Integer>> table = new ArrayList<ArrayList<Integer>>(); 

D. List<List, Integer> table = new List<List, Integer>(); 

E. List<List, Integer> table = new ArrayList<List, Integer>(); 

F. List<List, Integer> table = new ArrayList<ArrayList, Integer>(); 

G. None of the 


请选择: A B C D E F G

第4题(id号=442):

What is written to the standard output given the following statement
1. System.out.println(4 | 7);
a. 4
b. 5
c. 6
d. 7


请选择: A B C D

第5题(id号=51):

Which of the following statements are legal?
  A. long l = 4990;
  B. int i = 4L;
  C. float f = 1.1;
  D. double d = 34.4;
  E. double t = 0.9F.


请选择: A B C D E

第6题(id号=371):

Consider the following code: What will be printed?
public class ExceptionTestMindQ{
  public static void main(String [] args){
   ExceptionTestMindQ e = new ExceptionTestMindQ();
   e.trythis();
 }
 public vo id trythis(){
  try{
     System.out.println("Innan testet");
     problem();
 }catch (NullPointerException x){
     System.out.println("Nullpointer");
 }catch(Exception x){
     System.out.println("Exception");
     return;
 }finally{
     System.out.println("finally");
 }
  System.out.println("mymethod is done");
 }

 public void problem()throws IllegalArgumentException{
    throw new IllegalArgumentException();
  }
}
A. Innan testet
B. Nullpointer
C. Exception
D. finally
E. mymethod is done


请选择: A B C D E

第7题(id号=579):

what is reserved words in java? 
A. run 
B. default 
C. implement 
D. import 


请选择: A B C D

第8题(id号=499):

How does the weighty property of the GridBagConstraints objects used in grid 
bag layout affect the layout of the components? 

1) It affects which grid cell the components end up in. 
2) It affects how the extra vertical space is distributed. 
3) It affects the alignment of each component. 
4) It affects whether the components completely fill their allotted 
   display area vertically. 


请选择: A B C D

第9题(id号=16):

Which of the following answer is correct to express the value 8 in octal number? 
A. 010
B. 0x10
C. 08
D. 0x8 


请选择: A B C D

第10题(id号=75):

 Give the code fragment: 
if(x>4){ 
  System.out.println(“Test 1”);} 
else if (x>9){ 
  System.out.println(“Test 2”);} 
else { 
  System.out.println(“Test 3”);} 

Which range of value x would produce of output “Test 2”? 
A. x<4 
B. x>4 
C. x>9 
D. None 


请选择: A B C D

第11题(id号=205):

 Which will declare a method that forces a subclass to implement it? 
A. Public double methoda(); 
B. Static void methoda (double d1) {} 
C. Public native double methoda(); 
D. Abstract public void methoda(); 
E. Protected void methoda (double d1){} 



请选择: A B C D E

第12题(id号=674):

Given:

1. import java.text.*;
2. class DateOne {
3.   public static void main(String[] args) {
4.     Date d = new Date(1123631685981L);
5.     DateFormat df = new DateFormat();
6.     System.out.println(df.format(d));
7.   }
8. }

And given that 1123631685981L is the number of milliseconds between Jan. 1, 1970, 
and sometime on Aug. 9, 2005, what is the result? 
(Note: the time of day in option A may vary.) 

A. 8/9/05 5:54 PM

B. 1123631685981L,

C. An exception is thrown at runtime.

D. Compilation fails due to a single error in the code.

E. Compilation fails due to multiple errors in the code.


请选择: A B C D E

第13题(id号=129):

float f=4.2F;
Float g=new Float(4.2F);
Double d=new Double(4.2);
Which are true?
A. f==g   B. g==g   C. d==f   D. d.equals(f)  E d.equals(g)  F. g.equals(4.2);


请选择: A B C D E F

第14题(id号=641):

Given:

class Knowing {
  static final long tooth = 343L;
  static long doIt(long tooth) {
    System.out.print(++tooth + " ");

    return ++tooth;
  }
  public static void main(String[] args) {
    System.out.print(tooth + " ");
    final long tooth = 340L;
    new Knowing().doIt(tooth);
    System.out.println(tooth);
  }
}

What is the result?

A. 343 340 340 

B. 343 340 342 

C. 343 341 342 

D. 343 341 340 

E. 343 341 343 

F. Compilation fails.

G. An exception is thrown at runtime.


请选择: A B C D E F G

第15题(id号=498):

Which lines of code are valid declarations of a native method when 
occurring within the declaration of the following class? 

public class Qf575 { 
// insert declaration of a native method here 


A) native public void setTemperature(int kelvin); 
B) private native void setTemperature(int kelvin); 
C) protected int native getTemperature(); 
D) public abstract native void setTemperature(int kelvin); 
E) native int setTemperature(int kelvin) {} 


请选择: A B C D E

第16题(id号=394):

Consider the following code: What will be printed?
public class newIntegerLong{
  public static void main(String[]args){
  Integer nA = new Integer(4096);
  Long nB = new Long(4096);
  if(nA.equals(nB))
    System.out.println("LongEqualsInteger.");
  if(nA.intValue() == nB.longValue()){
    System.out.println("If you create new primitive values of Long(4096)
    and Integer(4096), then == true.");
}}}
A. LongEqualsInteger.
B. If you create new primitive values of Long(4096) and Integer(4096),then == true.
C. LongEqualsInteger. If you create new primitive values of Long(4096)
   and Integer(4096), then == true.
D. If you create new primitive values of Long(4096) and Integer(4096),then == true.
E. Nothing will be printed.


请选择: A B C D E

第17题(id号=443):

What expressions are true concerning the following lines of code?
1. int[] arr = {1, 2, 3};
2. for(int i = 0 ; i < 2; i++)
3. arr[i] = 0;
Select all valid answers.
a. arr[0] == 0
b. arr[1] == 2
c. arr[1] == 0
d. arr[2] == 3


请选择: A B C D

第18题(id号=253):

What will happen when you attempt to compile and run this code?
public class MySwitch{
 public static void main(String argv[]) {
   MySwitch ms = new MySwitch();
   ms.amethod();
 }

 public void amethod() {
   char k=10;
   switch(k){
    default:
      System.out.println("This is the default output");
      break;
    case 10:
      System.out.println("ten");
      break;
    case 20:
      System.out.println("twenty");
      break;
   }
 }
}
A. None of these options
B. Compile time error target of switch must be an integral type
C. Compile and run with output "This is the default output"
D. Compile and run with output "ten"


请选择: A B C D

第19题(id号=487):

What is wrong with the following code? 
class MyException extends Exception {} 
public class Qb4ab { 
     public void foo() { 
       try { 
          bar(); 
       } finally { 
          baz(); 
       } catch (MyException e) {} 
   } 
  public void bar() throws MyException { 
   throw new MyException(); 
  } 
  public void baz() throws RuntimeException { 
    throw new RuntimeException(); 
  } 


A) Since the method foo() does not catch the exception generated by
   the method baz(), it must declare the RuntimeException in its throws clause. 
B) A try block cannot be followed by both a catch and a finally block. 
C) An empty catch block is not allowed. 
D) A catch block cannot follow a finally block. 
E) A finally block must always follow one or more catch blocks. 


请选择: A B C D E

第20题(id号=643):

Given:

1. class Eco {
2.   public static void main(String[] args)    {
3.     Eco e1 = new Eco();
4.     Eco e2 = new Eco();
5.     Eco e3 = new Eco();
6.     e3.e = e2;
7.     e1.e = e3;
8.     e2 = null;
9.     e3 = null;
10.    e2.e = el;
11.    e1   =  null;
12.  }
13.  Eco e;
14. }

At what point is only a single object eligible for GC?

A. After line 8 runs.

B. After line 9 runs.

C. After line 10 runs.

D. After line 11 runs.

E. Compilation fails.

F. Never in this program.

G. An exception is thrown at runtime.


请选择: A B C D E F G

第21题(id号=547):

Given the following code:
public class Person{
 static int arr[] = new int[10];
 public static void main(String a[]) {
 System.out.println(arr[1];)
}
}
Which statement is correct?
A. When compilation some error will occur.
B. It is correct when compilation but will cause error when running.
C. The output is zero.
D. The output is null.


请选择: A B C D

第22题(id号=262):

Which interface should you use if you want no duplicates, no order
and no particular retrieval system?
A. Map
B. Set
C. List
D. Collection
E. Enumeration


请选择: A B C D E

第23题(id号=137):

1)public class X implements Runnable{ 
  2)private int x; 
  3)private int y; 
  4)public static void main(String[] args){ 
  5)   X that =new X(); 
  6) (new Thread(that)).start(); 
  7) (new Thread(that)).start(); 
   } 
  9) public synchronized void run(){ 
  10)  for(;;){ 
  11)      x++; 
  12)      Y++; 
  13) System.out.println("x="+x+",y="+y); 
  14)    } 
  15)   } 
  16)  }   
    what is the result? 
  A.compile error at line 6 
  B.the program prints pairs of values for x and y that are 
    always the same on the same time 


请选择: A B

第24题(id号=261):

A class design requires that a particular member variable must be
accessible for direct access by classes which are members of the same
package. What should be done to achieve this?
A. The variable should be marked public
B. The variable should be marked private
C. The variable should be marked protected
D. The variable should have no special access modifier
E. The variable should be marked private and an accessor method provided


请选择: A B C D E

第25题(id号=103):

 Which cannot be added to a Container? 
   A. an Applet 
   B. a Component 
   C. a Container 
   D. a MenuComponent 
   E. a panel 


请选择: A B C D E

第26题(id号=78):

 Given the following class definition: 
class A{ 
protected int i; 
A(int i){ 
this.i=i; 


which of the following would be a valid inner class for this class? 
Select all valid answers: 

A. class B{ 


B. class B extends A{ 


C. class B extends A{ 
B(){System.out.println(“i=”+i);} 


D. class B{ 
class A{} 


E. class A{} 


请选择: A B C D E

第27题(id号=482):

Given that Thing is a class, how many objects and reference variables
 are created by the following code? 

Thing item, stuff; 
item = new Thing(); 
Thing entity = new Thing(); 

A) One object is created 
B) Two objects are created 
C) Three objects are created 
D) One reference variable is created 
E) Two reference variables are created 
F) Three reference variables are created. 


请选择: A B C D E F

第28题(id号=605):

At the end of these two lines of code:
String s = "hypertext";
String t = s.substring(2, 5);
What does the object reference t contain?
Select the one right answer.
a) "yper"
b) "ype"
c) "pert"
d) "per"
e) "perte"


请选择: A B C D E

第29题(id号=397):

Consider the code fragment below:
outer: for(int i = 0; i < 2; i++){
  inner: for(int j = 0; j < 2; j++){
   if(j==1)
     break outer;
     System.out.println("i = " + i ", j = " + j);
  }
}
Which of the following will be printed to standard output?
A. i = 0, j = 0
B. i = 1, j = 0
C. i = 2, j = 0
D. i = 0, j = 1
E. i = 1, j = 1
F. i = 2, j = 1


请选择: A B C D E F

第30题(id号=637):

Given:

class Uber {
  static int y = 2;
  Uber(int x) { this(); y = y * 2; }
  Uber() { y++; }
}

class Minor extends Uber {
  Minor() { super(y); y = y + 3; }
  public static void main(String [] args) {
    new Minor();
    System.out.println(y);
} }

What is the result?

A. 6

B. 7

C. 8

D. 9

E. Compilation fails.

F. An exception is thrown.


请选择: A B C D E F

第31题(id号=8):

What happens when you try to compile and run the following application? Choose all  
 correct options. 

  1. public class Z { 
  2. public static void main(String[] args) { 
  3. new Z(); 
  4. } 
  5. 
  6. Z() { 
  7. Z alias1 = this; 
  8. Z alias2 = this; 
  9. synchronized(alias1) { 
  10. try { 
  11. alias2.wait(); 
  12. System.out.println(“DONE WAITING”); 
  13. } 
  14. catch (InterruptedException e) { 
  15. System.out.println(“INTERR UPTED”); 
  16. } 
  17. catch (Exception e) { 
  18. System.out.println(“OTHER EXCEPTION”); 
  19. } 
  20. finally { 
  21. System.out.println (“FINALLY”); 

  22. } 
  23. } 
  24. System.out.println(“ALL DONE”); 
  25. } 
  26. } 

  A. The application compiles but doesn't print anything. 
  B. The application compiles and print “DONE WAITING” 
  C. The application compiles and print “FINALLY” 
  D. The application compiles and print “ALL DONE” 
  E. The application compiles and print “INTERRUPTED” 


请选择: A B C D E

第32题(id号=27):

Which statements about the garbage collection are true? 
A. The program developer must create a thread to be responsible for free the memory.
B. The garbage collection will check for and free memory no longer needed.
C. The garbage collection allow the program developer to explicity and 
   immediately free the memory.
D. The garbage collection can free the memory used java object at expect 
time. 


请选择: A B C D

第33题(id号=65):

What will be printed when you execute the following code?

class X 
{
    Y b = new Y();
    X() 
    { 
        System.out.print("X"); 
    }
}
class Y 
{
    Y() 
    { 
        System.out.print("Y"); 
    }
}
public class Z extends X 
{
    Y y = new Y();
    Z() 
    { 
        System.out.print("Z"); 
    }
    public static void main(String[] args) 
    {
        new Z();
    }
}

A. Z
B. YZ
C. XYZ
D. YXYZ


请选择: A B C D

第34题(id号=326):

Which of the following is a legal return type of a method overloading the following
method:
public void add(int a) {…}
A. void
B. int
C. Can be anything
Select the most appropriate answer.


请选择: A B C

第35题(id号=424):

Which statement or statements are true about the code fragment listed below?
(HINT The ActionListener and ItemListener interface each define a single method.)
1. class MyListener implements ActionListener, ItemListener {
2. public void actionPerformed(ActionEvent e) {
3. System.out.println("Action.");
4. }
5. public void itemStateChanged(ItemEvent ie) {
6. System.out.println("Item.");
7. }
8. }
a. The code compiles without error.
b. The code generates a compiler error at line 1.
c. The code generates a compiler error at line 2.
d. The code generates a compiler error at line 5.


请选择: A B C D

第36题(id号=652):

Given:

class Feline {
  public static void main(String[] args) {
    Long x = 42L;
    Long y = 44L;
    System.out.print (" " + 7 + 2 + " ") ;
    System.out.print(foo () + x + 5 + " ");
    System.out.println(x + y + foo());
  }
  static String foo() { return "foo"; }
}

What is the result?

A. 9 foo47 86foo 

B. 9 foo47 4244foo 

C. 9 foo425 86foo 

D. 9 foo425 4244foo 

E. 72 foo47 86foo 

F. 72 foo47 4244foo 

G. 72 foo425 86foo 


请选择: A B C D E F G

第37题(id号=561):

Given:
1. public abstract class Prod {
2. public abstract void prmth1();
3. public static void prmth2() {
4. int mth2 = 30;
5. System.out.println("prmth2 = " + mth2);
6. }
7. public abstract void prmth3();
8. }
What is the result?
A Compilation succeeds.
B Compilation fails because of an error on line 1.
C Compilation fails because of an error on line 3.
D Compilation fails because of an error on line 7.


请选择: A B C D

第38题(id号=247):

What is the output of the following code?
outer: for(int i=1; i<3; i++){
   inner: for(int j=1; j<3; j++){
    if (j==2){
       continue outer;
    }
     System.out.println(i " and " j);
   }

}
A. 1 and 1
B. 1 and 2
C. 2 and 1
D. 2 and 2
E. 2 and 3
F. 3 and 2


请选择: A B C D E F

第39题(id号=133):

 class EnclosingOne{ 
  public class InsideOne{} 
    } 

  public class InnerTest{ 
   public static void main(String args[]){ 
    EnclosingOne eo=new EnclosingOne(); 
    //insert code here 
   } 
  } 
  A.InsideOne ei=eo.new InsideOne(); 
  B.eo.InsideOne ei=eo.new InsideOne(); 
  C.InsideOne ei=EnclosingOne.new InsideOne(); 
  D.InsideOne ei=eo.new InsideOne(); 
  E.EnclosingOne.InsideOne ei=eo.new InsideOne(); 


请选择: A B C D E

第40题(id号=540):

Given the following code:
 public class Test {
  void printValue(int m){
   do {
        System.out.println("The value is"+m);
  }while( --m > 10 )
 }
 public static void main(String arg[]) {
  int i=10;
  Test t= new Test();
  t.printValue(i);
 }
}
Which will be output?
A. The value is 8
B. The value is 9
C. The value is 10
D. The value is 11


请选择: A B C D

第41题(id号=413):

Given the following class definition,which of the following methods could be legally 
placed after the comment //Here
1. public class Rid {
2. public void amethod(int i, String s){}
3. //Here
4. }
a. public void amethod(String s, int i){}
b. public int amethod(int i, String s){}
c. public void amethod(int i, String mystring) {}
d. public void Amethod(int i, String s){}



请选择: A B C D

第42题(id号=265):

What can you put where the X is?

Public class A{}
A. import java.awt.*;
B. package bla.bla;
C. class bla{}
D. public abstract final method();
E. public final int x = 1000;


请选择: A B C D E

第43题(id号=512):

Which code fragments will succeed in printing the last argument given on 
the command line to the standard output, and exit gracefully with no 
output if no arguments are given? 

CODE FRAGMENT A: 
public static void main(String args[]) { 
  if (args.length != 0) 
    System.out.println(args[args.length-1]); 
  } 

CODE FRAGMENT B: 
public static void main(String args[]) { 
   try { System.out.println(args[args.length]); } 
     catch (ArrayIndexOutOfBoundsException e) {} 


CODE FRAGMENT C: 
public static void main(String args[]) { 
  int ix = args.length; 
  String last = args[ix]; 
  if (ix != 0) System.out.println(last); 


CODE FRAGMENT D: 
public static void main(String args[]) { 
  int ix = args.length-1; 
  if (ix > 0) System.out.println(args[ix]); 


CODE FRAGMENT E: 
public static void main(String args[]) { 
   try { System.out.println(args[args.length-1]); } 
      catch (NullPointerException e) {} 
   } 

A) Code fragment A. 
B) Code fragment B. 
C) Code fragment C. 
D) Code fragment D. 
E) Code fragment E. 


请选择: A B C D E

第44题(id号=325):

What is the result of executing the following code, using the parameters 4 and 0:
public void divide(int a, int b) {
 try {
   int c = a / b;
 } catch (Exception e) {
     System.out.print("Exception ");
} finally {
     System.out.println("Finally");
}
A. Prints out: Exception Finally
B. Prints out: Finally
C. Prints out: Exception
D. No output
Select the most appropriate answer.


请选择: A B C D

第45题(id号=83):

the piece of preliminary analsis work describes a class that will be used frequently in 
 many unrelated parts of a project “The polygon object is a drawable, A polygon has 
 vertex information stored in a vector, a color, length and width.” 
        Which Data type would be used? 
A. Vector 
B. int 
C. String 
D. Color 
E. Date 


请选择: A B C D E

第46题(id号=314):

Which of the following return true?
A. "john" == "john"
B. "john".equals("john")
C. "john" = "john"
D. "john".equals(new Button("john"))
Select all correct answers.


请选择: A B C D

第47题(id号=530):

Given that file is a reference to a File object that represents a directory,
 which code fragments will succeed in obtaining a list of the entries 
in the directory? 

A) Vector filelist = ((Directory) file).getList(); 
B) String[] filelist = file.directory(); 
C) Enumeration filelist = file.contents(); 
D) String[] filelist = file.list(); 
E) Vector filelist = (new Directory(file)).files(); 


请选择: A B C D E

第48题(id号=484):

Given the following code, which statements are true? 
class A { 
 int value1; 

class B extends A { 
 int value2; 


A) Class A extends class B. 
B) Class B is the superclass of class A. 
C) Class A inherits from class B. 
D) Class B is a subclass of class A. 
E) Objects of class A have a member variable named value2. 


请选择: A B C D E

第49题(id号=329):

Where in a constructor, can you place a call to a constructor defined in the super class?
A. Anywhere
B. The first statement in the constructor
C. The last statement in the constructor
D. You can't call super in a constructor
Select the most appropriate answer.


请选择: A B C D

第50题(id号=663):

Given:

class Swill {
  public static void main(String[] args) {
    String s = "-";
    switch(TimeZone.CST) {
      case EST: s += "e";
      case CST: s += "c";
      case MST: s += "m";
      default:  s += "X";
      case PST: s += "p";
    }
    System.out.println(s);
  }
}
enum TimeZone {EST, CST, MST, PST }

What is the result?

A. -c 

B. -X 

C. -cm 

D. -cmp 

E. -cmXp 

F. Compilation fails.


请选择: A B C D E F

第51题(id号=555):

 
 Which of the following fragments might cause errors? 
  A. String s = "Gone with the wind";
     String t = " good ";
     String k = s + t;
  
  B. String s = "Gone with the wind";
     String t;
     t = s[3] + "one";
  
  C. String s = "Gone with the wind";
     String standard = s.toUpperCase();
  
  D. String s = "home directory";
     String t = s - "directory";
  


请选择: A B C D

第52题(id号=441):

Given the code snippet,
1. double a = 90.7;
2. double b = method(a);
3. System.out.println(b);
if this snippet displays 90.0 in the standard output, what Math method did
method() invoke? Select all valid answers.
a. abs()
b. round()
c. floor()
d. ceil()


请选择: A B C D

第53题(id号=409):

What is the output of the following program?
 public class Q11 {
   static String str1 = "main method with String[] args";
   static String str2 = "main method with int[] args";
   public static void main(String[] args){
     System.out.println(str1);
   }

   public static void main(int[] args){
     System.out.println(str2);
   }
 }
a. Duplicate method main(), compilation error at line 5.
b. Duplicate method main(), compilation error at line 10.
c. Prints "main method with String[] args".
d. Prints "main method with int[] args". 


请选择: A B C D

第54题(id号=74):

Give incompleted method: 
1) 
2) { if(unsafe()){//do something…} 
3) else if(safe()){//do the other…} 
4) } 
The method unsafe() well throw an IOException, which completes the method of 
    declaration
    when added at line one? 
A. public IOException methodName() 
B. public void methodName() 
C. public void methodName() throw IOException 
D. public void methodName() throws IOException 
E. public void methodName() throws Exception 


请选择: A B C D E

第55题(id号=257):

If you want a member variable to not be accessible outside the
current class at all, what keyword should precede the name of the
variable when declaring it?
A. private 
B. protected 
C. synchronized 
D. final


请选择: A B C D

第56题(id号=176):

 //point X 
  public class Foo{ 
   public static void main(String[] args){ 
    PrintWriter out=new PrintWriter(new java.io.OutputStreamWriter(System.out),true); 
    out.println("Hello"); 
   } 
  } 
  which statement at point X on line 1 allows this code to compile and run? 
  A.import java.io.PrintWriter          B.include java.io.PrintWriter 
  C.import java.io.OutputStreamWriter   D.include java.io.OutputStreamWriter 
  E.No statement is needed 


请选择: A B C D E

第57题(id号=197):

 Given: 
1. public class ConstOver { 
2.   public ConstOver (int x, int y, int z)  { 
3.      } 
4. } 
Which two overload the ConstOver constructor? (Choose Two) 
A. ConstOver ( ) { } 
B. Protected int ConstOver ( ) { } 
C. Private ConstOver (int z, int y, byte x) { } 
D. public Object ConstOver (int x, int y, int z) { } 
E. public void ConstOver (byte x, byte y, byte z) { } 


请选择: A B C D E

第58题(id号=203):

 Given: 
8.  int index = 1; 
9.  boolean[] test = new Boolean[3]; 
10. boolean foo= test [index]; 
What is the result? 
A. foo has the value of 0 
B. foo has the value of null 
C. foo has the value of true 
D. foo has the value of false 
E. an exception is thrown 
F. the code will not compile 


请选择: A B C D E F

第59题(id号=157):

 which two declaretions prevent the overriding of a method? 
  A. final void methoda(){} 
  B. void final methoda(){} 
  C. static void methoda(){} 
  D. static final void methoda(){} 
  E. final abstract void methoda(){} 


请选择: A B C D E

第60题(id号=188):

 which constructs a BufferedInputStream? 
  A.new BufferedInputStream(new FileInputStream("in.txt")); 
  B.new BufferedInputStream(new FileReader("in.txt")); 



请选择: A B


如果你想交卷,请点击提交按钮: