Multiple Choice Question

Quiz Guidelines



What will be the output of the following class...

class Test{
public static void main(String[] args){
int j = 1;
int i = doIt() / (j = 2);
} catch (Exception e){
System.out.println(" j = " + j);
public static int doIt() throws Exception { throw new Exception("FORGET }

Select 1 option

A. It will print j = 1;
B. It will print j = 2;
C. The value of j cannot be determined.
D. It will not compile.
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!!!