The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?
Found an error? Read our corrections policy and report it in the comments below.
A. Will not compile as boolean can never be static
B. Will not compile as boolean is not initialized
D. Prints true
Found an error? Read our corrections policy and report it in the comments below.