Computer Programming MCQs Java concepts and its programming
Q The following program: public class Test{ static boolean is OK; public static void main(String args[]){System.out.print(is OK); } } ?
  • A A. Prints true
  • B B. Prints false
  • C C. Will not compile as boolean is not initialized
  • D D. Will not compile as boolean can never be static
Leave a Comment