多项选择题

public void test() {    
try { oneMethod(); 
System.out.println("condition 1"); 
} 
catch (ArrayIndexOutOfBoundsException e) {    
System.out.println("condition 2");   
 } 
catch(Exception e) { 
System.out.println("condition 3");    
} 
finally { 
System.out.println("finally");   
} 
} 
Which will display if oneMethod run normally?()    

A. condition 1
B. condition 2
C. condition 3
D. finally


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题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.

3.单项选择题Which of the following assignment is not correct?()         

A. float f = 11.1;
B. double d = 5.3E12;
C. double d = 3.14159;
D. double d = 3.14;.

4.单项选择题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.

5.单项选择题

Given the following expression about TextField which use a proportional pitch font. 
TextField t = new TextField("they are good",40);   
 Which statement is true?() 

A. The displayed string can use multiple fonts.
B. The maximum number of characters in a line will be 40.
C. The displayed width is exactly 40 characters.
D. The user can edit the characters.

7.单项选择题Which is the return type of the method main()?    

A. int
B. void
C. boolean
D. static

9.多项选择题Which of the following statements are true?() 

A. The equals() method determines if reference values refer to the same object.
B. The == operator determines if the contents and type of two separate objects match.
C. The equals() method returns true only when the contents of two objects match.
D. The class File overrides equals() to return true if the contents and type of two separate objects        match.

10.多项选择题Which are not Java keywords? ()   

A. TRUE
B. sizeof
C. const
D. super
E. void