Multiple Choice Question

Quiz Guidelines

 

QID: 
531
Question: 

What will the following program print when run?

public class TestClass{  
public static void main(String[] args){     
try{        
System.exit(0);     }     
finally{         
System.out.println("finally is always executed!");    
 }  } }

Select 1 option

A. It will print  "finally is always executed!" 
B. It will not compile as there is no catch block. 
C. It will not print anything. 
D. An exception will be thrown 
E. None of the above. 

Q&A Set: 

Search the Web

Custom Search

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