Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Java concepts and its programming

The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?

The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?

A. Prints true
B. Prints false
C. Will not compile as boolean is not initialized
D. Will not compile as boolean can never be static

The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ? Read More »

Java concepts and its programming