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?

Choose the correct answer

Explanation

In Java, static boolean fields are automatically initialized to false by default. Therefore, the program will compile successfully and print false when executed.

Consider the following Java code: public class Test … — Java concepts and its programming | PakQuizHub