JavaQuizzes

Quiz Guidelines

 

Descriptive Question

QID: 
532

Identify the exceptions that will be received when the code snippets on the left hand side are executed.

Descriptive Question

QID: 
533

Identify the Exceptions that SHOULD be thrown in the situations shown below.

Descriptive Question

QID: 
534

Identify the Exceptions that SHOULD be thrown in the situations shown below.

Multiple Choice Question

QID: 
535

What will the following code print when run?

public class Test{ 
static String j = ""; 
public static void method( int i){ 
 try{   if(i == 2){     
throw new Exception();   }   
j += "1";  }  
catch (Exception e){  
 j += "2";   
return;  }  
finally{   
j += "3";  }  
j += "4"; } 
public static void main(String args[]){  
method(1);  
method(2);  
System.out.println(j); } }

Select 1 option 

A. 13432 
B. 13423
C. 14324 
D. 12434 
E. 12342 

Multiple Choice Question

QID: 
536

Which of the following are standard Java exception classes?

Select 2 options 

A. FileNotFoundException 
B. InputException 
C. CPUError 
D. MemoryException 
E. SecurityException 

Pages

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!