12974. 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 correct answer is option B.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top