Consider the following Java code: public class Test { static boolean isOK; public static void main(String[] args) { System.out.print(isOK); } } What will be the output when this program is executed?
Explanation
In Java, static boolean fields are automatically initialized to false by default. Therefore, the program will compile successfully and print false when executed.