Multiple Choice Question

Quiz Guidelines

 

QID: 
283
Question: 

What will the following program print?

public class TestClass{
static String str;
public static void main(String[] args){
System.out.println(str);
}
}

Select 1 option

A. It will not compile.
B. It will compile but throw an exception at runtime.
C. It will print 'null' (without quotes).
D. It will print nothing.
E. None of the above.

Q&A Set: